-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Omitting a dropdown field's value which has a default doesn't validate #15706
Comments
Hi, thanks for getting in touch! I’m having trouble replicating this. Could you please share a screenshot of the dropdown field’s settings and an associated stack trace? |
This is the dropdown:
This is the error the fixtures now throw (since 5.4):
|
Thanks! I’m still unable to reproduce this. Any chance you could send over a project where this is happening ([email protected])? |
Am also getting this on my project. Seems to be when using the slideout for entry types. The validation fails each time if the dropdown hasn't been changed from the default value |
I was just about to create a ticket for this! None of the default field values for dropdown & radio fields have been saving. I'm only having this issue for nested matrix fields (Card view mode) How to replicate:
|
Thanks for the additional info! I think I can reproduce this now. |
Craft 5.4.4 is out with this fix. Thanks again! |
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
The text was updated successfully, but these errors were encountered: