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