diff --git a/CHANGES.rst b/CHANGES.rst index 2be4f1ec43..c82e71abee 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ https://zope.readthedocs.io/en/2.13/CHANGES.html 4.1.4 (unreleased) ------------------ +- Fix sort link URLs on ``manage_main`` + (`#748 `_) + - Fix longstanding test bug by forcing the page template engine. Many tests in ``Products.PageTemplates`` used the old Zope page template engine because the correct one was not registered during setup. diff --git a/src/OFS/zpt/main.zpt b/src/OFS/zpt/main.zpt index 9d42ce6787..c772848cce 100644 --- a/src/OFS/zpt/main.zpt +++ b/src/OFS/zpt/main.zpt @@ -10,7 +10,9 @@ skey python:request.get('skey',default_sort); rkey python:request.get('rkey','asc'); rkey_alt python:'desc' if rkey=='asc' else 'asc'; + rkey_alt_up rkey_alt/upper; obs python: here.manage_get_sortedObjects(sortkey = skey, revkey = rkey); + my_url string:${context/absolute_url}/manage_main; " tal:attributes="action string:${request/URL1}/"> @@ -24,9 +26,9 @@ @@ -34,9 +36,9 @@ Name @@ -47,9 +49,9 @@ Size @@ -58,9 +60,9 @@ Last Modified @@ -153,6 +155,7 @@ +