8000 Fixed #6296 -- Removed localization for pk values in toolbar js (#6294) · vxsx/django-cms@b91f29c · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit b91f29c

Browse files
rfleschenbergvx
8000
sx
authored andcommitted
Fixed django-cms#6296 -- Removed localization for pk values in toolbar js (django-cms#6294)
Conflicts: CHANGELOG.txt cms/templates/cms/toolbar/toolbar_javascript.html
1 parent f292f8a commit b91f29c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Fixed a bug where xframe options were processed by clickjacking middleware
55
when page was served from cache, rather then get this value from cache
66
* Fixed a bug where cached page permissions overrides global permissions
7+
* Fixed a bug where editing pages with primary keys greater than 9999 would throw an
8+
exception.
79

810

911
=== 3.4.6 (2018-03-26) ===

cms/templates/cms/toolbar/toolbar_javascript.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
'request': {
1717
'language': '{{ request.GET.language|escape|escapejs }}',
1818
'model': '{{ request.toolbar.get_object_model }}',
19-
'page_id': '{% if request.current_page.publisher_is_draft %}{{ request.current_page.pk }}{% else %}{{ request.current_page.publisher_public_id }}{% endif %}',
20-
'pk': '{{ request.toolbar.get_object_pk }}',
19+
'page_id': '{% if request.current_page.publisher_is_draft %}{{ request.current_page.pk|unlocalize }}{% else %}{{ request.current_page.publisher_public_id|unlocalize }}{% endif %}',
20+
'pk': '{{ request.toolbar.get_object_pk|unlocalize }}',
2121
'url': '{% language request.toolbar.language %}{% cms_admin_url "cms_page_resolve" %}{% endlanguage %}',
2222
'tree': '{% language request.toolbar.language %}{% cms_admin_url "cms_page_changelist" %}{% endlanguage %}'
2323
},

0 commit comments

Comments
 (0)
0