Skip to content

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

Merged
jasonvarga merged 1 commit into6.xfrom
revisions-date-field
May 7, 2026
Merged

[6.x] Fix dated entries not syncing with origin revisions#14216
jasonvarga merged 1 commit into6.xfrom
revisions-date-field

Conversation

@duncanmcclean
Copy link
Copy Markdown
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

@jasonvarga jasonvarga merged commit fbf96af into 6.x May 7, 2026
18 checks passed
@jasonvarga jasonvarga deleted the revisions-date-field branch May 7, 2026 20:58
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

2 participants