cms
cms copied to clipboard
[4.5.3]: Default radio button option not applied when field is added to an existing entry
What happened?
Description
When adding a radio buttons
field with a default option, this option is not applied to existing entries.
Steps to reproduce
- Create a custom field with type
radio buttons
, at least 2 options, one of wich is set asdefault
. - Add this field to a section's field layout.
- Edit an existing entry in this section.
Expected behavior
The default option should be selected
Actual behavior
No option is selected
Craft CMS version
4.5.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
This is currently working as intended, but it’s worth us reconsidering, in the same vein as the Dropdown behavior change in 4.5. We’ll discuss internally…
Yes, I was indeed comparing it to the current dropdown behaviour. I'm sure you have a much clearer picture than me about possible drawbacks and implications, so I trust you will handle it in the best possible way.