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

FIX Don't update sort order in live until a block has been published #1234

Merged

Conversation

GuySartorelli
Copy link
Member

Uses the same mechanism used in SiteTree::onAfterPublish() to update the published sort order of all blocks in the same elemental area.

There are tradeoffs to this which are mentioned in #1218 (comment) - but IMO this is the best of the options available to us right now.

Targetting 5 because this change might be a bit unexpected for some content authors, so I'd like to give them a heads up in the changelog.

Issue

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Tested locally, works well

@emteknetnz emteknetnz merged commit 42fc926 into silverstripe:5 Aug 16, 2024
25 checks passed
@emteknetnz emteknetnz deleted the pulls/5/sort-on-publish branch August 16, 2024 04:50
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