8000 fix: When opening structure board page menu disappears or shows wrong page template by fsbraun · Pull Request #7671 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: When opening structure board page menu disappears or shows wrong page template #7671

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

Merged
merged 8 commits into from
Oct 17, 2023
Merged
Next Next commit
Fix: add .current_page to request for structure board
  • Loading branch information
fsbraun committed Oct 16, 2023
commit 633e7a187925017c1948e4a201c754f9c0b6aa93
2 changes: 2 additions & 0 deletions cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def render_object_structure(request, content_type_id, object_id):
'object': content_type_obj,
'cms_toolbar': request.toolbar,
}
if isinstance(content_type_obj, PageContent):
request.current_page = content_type_obj.page
toolbar = get_toolbar_from_request(request)
toolbar.set_object(content_type_obj)
return render(request, 'cms/toolbar/structure.html', context)
Expand Down
0