-
-
Notifications
You must be signed in to change notification settings - Fork 548
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] Use default value from field config #9010
[5.x] Use default value from field config #9010
Conversation
- show that the default value definitely gets augmented - show that having a default value configured doesn't mess with a passed value
I was about to merge this but then realized we have Maybe it's just that |
Just dumping thoughts here. You don't need to make any changes. I'll loop back around to this. Somewhere that this is a little iffy is in any entry listing. My This is because we deal with just values, not augmented values:
I don't think So maybe we just change that Within templates, GraphQL, and the API, it all seems good. 👌 |
This pull request makes it so when there's no raw value for a field (eg. data saved for the field in an entry's YAML file), Statamic will now augment the default value for the field, if one is provided. This means that you no longer need to re-save all entries after setting the default value for a field.
This PR is targeting
master
(Statamic 5) since changing the behaviour is a breaking change.Fixes #8804.