Skip to content

Use closest origin that has field localized#598

Merged
ryanmitchell merged 1 commit into
5.xfrom
fix/use-closest-entry-origin
Jun 3, 2026
Merged

Use closest origin that has field localized#598
ryanmitchell merged 1 commit into
5.xfrom
fix/use-closest-entry-origin

Conversation

@ryanmitchell
Copy link
Copy Markdown
Contributor

Duplicate of #587 but for 5.x branch

@ryanmitchell ryanmitchell merged commit a3b59f3 into 5.x Jun 3, 2026
13 checks passed
@ryanmitchell ryanmitchell deleted the fix/use-closest-entry-origin branch June 3, 2026 08:30
Comment thread src/Entries/Entry.php
$directOriginData = $directOrigin->data();

// remove any fields in entry data that are marked as localized but value is present, and matches origin
// remove any fields in entry data that are marked as localized but value is present, and does not match origin
Copy link
Copy Markdown
Contributor

@Boefjim Boefjim Jun 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryanmitchell

I think this reverted a fix for this comment on the 5.x branch, that had not been applied on the 4.x branch?

This should only remove fields that are present & match with the origin (or now rather the closest origin that localizes the field), so the original comment here seems to be more accurate 🤔

Copy link
Copy Markdown
Contributor Author

@ryanmitchell ryanmitchell Jun 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've updated that directly on 5.x

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