Skip to content

[6.x] Fix dated entries not syncing with origin revisions#14216

Open
duncanmcclean wants to merge 1 commit into6.xfrom
revisions-date-field
Open

[6.x] Fix dated entries not syncing with origin revisions#14216
duncanmcclean wants to merge 1 commit into6.xfrom
revisions-date-field

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where dated entries with non-localizable date fields become unsynced with their origin when using revisions.

This happens because when a localized entry is reconstructed from its working copy (via makeFromRevision()), it would use the stale date stored in the revision instead of the current date from the origin entry.

This meant that when the origin's date was changed and published, localized entries with working copies would continue showing the old date.

This PR fixes it by adding a check in makeFromRevision() to determine whether the entry is the root, and whether the date field is marked as localizable. When an entry is a localization and the date field isn't localizable, the revision's date will be skipped, allowing the entry to inherit the date from the origin.

Fixes #14132

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.

Dated entries unsynced with revisions

1 participant