Commit a5c2dddb authored by Vincent Pelletier's avatar Vincent Pelletier

Hardcode orber-by when sorting on translation title.

As column alias is also hardcoded in subquery's select, it will make the intent clearer.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24934 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f2c7e70
......@@ -215,7 +215,7 @@ FROM\n
ORDER BY\n
<dtml-if "query[\'order_by_expression\']">\n
<dtml-if is_translation_order_by>\n
<dtml-var "query[\'order_by_expression\'].split(\'.\')[-1]">\n
translated_message\n
<dtml-else>\n
<dtml-var "query[\'order_by_expression\']">\n
</dtml-if>\n
......@@ -345,7 +345,7 @@ FROM\n
ORDER BY\n
<dtml-if "query[\'order_by_expression\']">\n
<dtml-if is_translation_order_by>\n
<dtml-var "query[\'order_by_expression\'].split(\'.\')[-1]">\n
translated_message\n
<dtml-else>\n
<dtml-var "query[\'order_by_expression\']">\n
</dtml-if>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment