[5.x]: Default radio field value isn't applied to existing entries
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
When creating a radio field with a default value and adding it to an entry's type layout, the default value isn't applied to existing entries.
Steps to reproduce
- Create a
Radio Buttonsfield with a default value. - Add this field to an entry's layout.
Expected behavior
All entries of above type should have the default value applied.
Actual behavior
No radio button is selected.
Craft CMS version
5.4.4
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
The issue provides no file, test, or entry point; start by reproducing the behavior in Craft CMS 5.4.4 using a radio field with a default value added to an existing entry type layout. Done means all existing entries of that type have the default radio value applied.
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