Commit 37b8c6b2 authored by Yusei Tahara's avatar Yusei Tahara

Stop to use "group by reference" without aggregate function. if reference...

Stop to use "group by reference" without aggregate function. if reference column is not constant, result is indeterminate value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18121 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4aeb73c
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -126,8 +123,6 @@ if not kw.has_key(\'validation_state\'):\n ...@@ -126,8 +123,6 @@ if not kw.has_key(\'validation_state\'):\n
\'released\', \'published\', \'restricted\']\n \'released\', \'published\', \'restricted\']\n
if not kw.has_key(\'sort_on\'):\n if not kw.has_key(\'sort_on\'):\n
kw[\'sort_on\'] = [(\'int_index\', \'descending\')]\n kw[\'sort_on\'] = [(\'int_index\', \'descending\')]\n
if not kw.has_key(\'group_by\'):\n
kw[\'group_by\'] = (\'reference\',)\n
\n \n
# Return the list of matching documents for the given states\n # Return the list of matching documents for the given states\n
return current_section.searchResults(**kw)\n return current_section.searchResults(**kw)\n
......
607 608
\ No newline at end of file \ 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