Skip to content

Commit

Permalink
Undo, get page from toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 7, 2023
1 parent 58a184e commit 455dafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_versioning/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get_page_content(self, language=None):
return get_latest_admin_viewable_content(self.page, language=language)

def populate(self):
self.page = self.request.current_page
self.page = self.request.current_page or getattr(self.toolbar.obj, "page", None)
self.title = self.get_page_content() if self.page else None
self.permissions_activated = get_cms_setting("PERMISSION")

Expand Down

0 comments on commit 455dafa

Please sign in to comment.