What happened?
Description
Since 5.4, when omitting a field's value which has a default, it doesn't validate anymore. This worked up until 5.3.
Steps to reproduce
- Create a dropdown field with a default value
- Add to an entry type
- Create a new entry (programmatically, we use it in fixtures) that omits setting this field
Expected behavior
Validation should pass, as it should use the default value
Actual behavior
Validation fails
Craft CMS version
5.4.2
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
Since 5.4, when omitting a field's value which has a default, it doesn't validate anymore. This worked up until 5.3.
Steps to reproduce
Expected behavior
Validation should pass, as it should use the default value
Actual behavior
Validation fails
Craft CMS version
5.4.2
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions