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

[4.x] Ensure changes to "Parent" get saved when using revisions #9079

Merged
merged 8 commits into from Mar 18, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue when using Revisions where changes to the "Parent" wouldn't be saved & the entry wouldn't be moved in the collection's tree.

This PR fixes that by persisting the parent as part of the revision data, then handling the "move in tree" part when the revision is published.

Fixes #8547.

duncanmcclean and others added 8 commits November 28, 2023 11:20
We can't change the tree when saving a revision because it's not published yet.

However, we *do* need to save it, which we're doing with the whole supplements thing.

I've adjusted the code in `EntriesController@extractFromFields` since we need to push the new parent back up to the frontend, without it actually being the parent.
This reverts commit 9690e9f.
@jasonvarga jasonvarga merged commit 4a569e7 into 4.x Mar 18, 2024
35 checks passed
@jasonvarga jasonvarga deleted the fix/parent-not-changing-when-using-revisions branch March 18, 2024 19:47
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.

Parent field doesn't save selected page with revisions enabled
2 participants