Commit b9ef1dfc authored by Vincent Pelletier's avatar Vincent Pelletier

Do not rely on the current way of alias name generation. It should be enough...

Do not rely on the current way of alias name generation. It should be enough to check that expected column is present.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cefec7d4
...@@ -141,7 +141,7 @@ kw</string> </value> ...@@ -141,7 +141,7 @@ kw</string> </value>
<dtml-let query="buildSQLQuery(query=portal_catalog.getSecurityQuery(**kw),\n <dtml-let query="buildSQLQuery(query=portal_catalog.getSecurityQuery(**kw),\n
validation_state=validation_state, **kw)"\n validation_state=validation_state, **kw)"\n
is_translation_order_by="query[\'order_by_expression\'] is not None and\n is_translation_order_by="query[\'order_by_expression\'] is not None and\n
query[\'order_by_expression\'].startswith(\'related_translation_0.\')">\n \'translated_message\' in query[\'order_by_expression\']">\n
\n \n
<dtml-comment>\n <dtml-comment>\n
Currently, there is no other choice to implement this method as an SQL catalog until SQLCatalog \n Currently, there is no other choice to implement this method as an SQL catalog until SQLCatalog \n
...@@ -271,7 +271,7 @@ FROM\n ...@@ -271,7 +271,7 @@ FROM\n
<dtml-let query="buildSQLQuery(query=portal_catalog.getSecurityQuery(**kw),\n <dtml-let query="buildSQLQuery(query=portal_catalog.getSecurityQuery(**kw),\n
validation_state=validation_state, **kw)"\n validation_state=validation_state, **kw)"\n
is_translation_order_by="query[\'order_by_expression\'] is not None and\n is_translation_order_by="query[\'order_by_expression\'] is not None and\n
query[\'order_by_expression\'].startswith(\'related_translation_0.\')">\n \'translated_message\' in query[\'order_by_expression\']">\n
\n \n
<dtml-comment>\n <dtml-comment>\n
Currently, there is no other choice to implement this method as an SQL catalog until SQLCatalog \n Currently, there is no other choice to implement this method as an SQL catalog until SQLCatalog \n
......
727 728
\ No newline at end of file
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