Commit ff420386 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix WebSection_zGetDocumentValueList so that it returns documents having...

fix WebSection_zGetDocumentValueList so that it returns documents having different languages and the same reference.
parent c76b44bf
...@@ -143,12 +143,16 @@ kw</string> </value> ...@@ -143,12 +143,16 @@ kw</string> </value>
priority DESC\n priority DESC\n
\n \n
) AS catalog\n ) AS catalog\n
<dtml-if "\'versioning\' in query[\'order_by_expression\']">\n <dtml-if "\'versioning\' in query[\'order_by_expression\'] or all_languages">\n
, versioning\n , versioning\n
WHERE catalog.uid = versioning.uid\n WHERE catalog.uid = versioning.uid\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if all_languages>\n
GROUP BY reference, language\n
<dtml-else>\n
GROUP BY reference\n GROUP BY reference\n
</dtml-if>\n
\n \n
<dtml-if "query[\'order_by_expression\']">\n <dtml-if "query[\'order_by_expression\']">\n
ORDER BY\n ORDER BY\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