forked from ezsystems/ezpublish-kernel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EZP-24053: Preview locks content object, and cause version edit c…
…onflict > https://jira.ez.no/browse/EZP-24053 This issue was due to an incomplete implementation of legacy website toolbar (handling preview was missing). This PR ensures that: * Content preview route is only used with Http GET (POST will be used by legacy to publish or go back to editing). * One can easily check if preview is active and retrieve previewed content/location. ContentPreviewHelper is now used to check if preview is active and to get previewed content/location since as of Symfony 2.4, request attributes from the master request are not passed to sub-requests any more. Furthermore, it's cleaner to be able to get this information through a dedicated service instead of request attributes.
- Loading branch information
1 parent
8371799
commit 7ebb250
Showing
6 changed files
with
124 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters