[4.5.3]: Default radio button option not applied when field is added to an existing entry
Open
Nobody has claimed this yet.
bug
craft4
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Reproduce the issue by adding a radio-buttons field with a default option to an existing section, then edit an existing entry; done means the configured default option is selected instead of leaving the field empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100