Skip to content
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] Prevent updating time fieldtype value if it hasn't changed #10409

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue with the Time Fieldtype, where its value would end up being saved in the localized entry's data, even when the field wasn't marked as "Localizable" in the blueprint.

This was happening due to the fact the fieldtype was updating the field's value in the publish container, which subsequently added the time field to the localizedFields array, which is the array that contains the fields that should end up getting saved to the entry's data.

To fix this, I've wrapped the "update the value" code in a conditional to check whether the value has actually be changed or not.

No issue, related to support ticket 5742.

@jasonvarga jasonvarga merged commit a508bd2 into 5.x Jul 16, 2024
16 checks passed
@jasonvarga jasonvarga deleted the prevent-updating-time-fieldtype-value-if-it-hasnt-changed branch July 16, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants