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 snippet personalized content content cleanup #4270

Merged
merged 3 commits into from Apr 26, 2019

Conversation

dvesh3
Copy link
Contributor

@dvesh3 dvesh3 commented Apr 24, 2019

Changes in this pull request

Resolves #4002

Additional info

@dvesh3 dvesh3 added the Bug label Apr 24, 2019
@dvesh3 dvesh3 added this to the 5.8.0 milestone Apr 24, 2019
@brusch brusch self-assigned this Apr 25, 2019
// check if there's a document in session which should be used as data-source
// see also PageController::clearEditableDataAction() | this is necessary to reset all fields and to get rid of
// outdated and unused data elements in this document (eg. entries of area-blocks)
$snippetSession = Session::useSession(function (AttributeBagInterface $session) use ($snippet) {
Copy link
Member

Choose a reason for hiding this comment

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

@dvesh3 To avoid duplicate code we should move this function to DocumentControllerBase and use it in both PageController and SnippetController, that should be easily possible as far as I can see.
Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@brusch brusch merged commit 1053993 into master Apr 26, 2019
@brusch brusch deleted the fix-personalized-content-clear branch April 26, 2019 09:07
weisswurstkanone pushed a commit that referenced this pull request Apr 29, 2019
* Fix snippet personalized content content cleanup

* Refactor to avoid duplicate code

* Revert unused models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Document] Delete Personalized Content on snippets
2 participants