8000 fix: CMS widgets need not load if they are read only by fsbraun · Pull Request #7880 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: CMS widgets need not load if they are read only #7880

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 11 commits into from
Apr 23, 2024
Next Next commit
fix #7826
  • Loading branch information
jrief authored and fsbraun committed Apr 2, 2024
commit 01dc6495bcc9dcb1db39904eed4fe7eee53a801e
4 changes: 3 additions & 1 deletion cms/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ def change_language_menu(self):
page_add_url = admin_reverse('cms_pagecontent_add')

for code, name in add:
url = add_url_parameters(page_add_url, cms_page=self.page.pk, language=code)
url = add_url_parameters(
page_add_url, cms_page=self.page.pk, parent_node=self.page.node.id, language=code
)
add_plugins_menu.add_modal_item(name, url=url)

if remove:
Expand Down
0