Commit b98cfc0c authored by Sebastien Robin's avatar Sebastien Robin

make sure that all sort_on parameter key are correct


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3170 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e457ce9b
......@@ -1448,10 +1448,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
key = 'catalog.uid'
# Add table to table dict
from_table_dict[acceptable_key_map[key][0]] = acceptable_key_map[key][0] # We use catalog by default
if v == 'descending' or v == 'reverse' or v == 'DESC':
new_sort_index += ['%s DESC' % key]
else:
new_sort_index += ['%s' % key]
if v == 'descending' or v == 'reverse' or v == 'DESC':
new_sort_index += ['%s DESC' % key]
else:
new_sort_index += ['%s' % key]
sort_index = join(new_sort_index,',')
sort_on = str(sort_index)
except:
......
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