Commit a2c3ddde authored by Jean-Paul Smets's avatar Jean-Paul Smets

add in form_table_list tables used for sorting


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1363 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1902e80b
...@@ -645,8 +645,10 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -645,8 +645,10 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
new_sort_index = [] new_sort_index = []
for (k , v) in sort_index: for (k , v) in sort_index:
if v == 'descending' or v == 'reverse': if v == 'descending' or v == 'reverse':
from_table_dict[acceptable_key_map[k][0]] = 1 # We need this table to sort on it
new_sort_index += ['%s DESC' % k] new_sort_index += ['%s DESC' % k]
else: else:
from_table_dict[acceptable_key_map[k][0]] = 1 # We need this table to sort on it
new_sort_index += ['%s' % k] new_sort_index += ['%s' % k]
sort_index = join(new_sort_index,',') sort_index = join(new_sort_index,',')
kw['sort_on'] = str(sort_index) kw['sort_on'] = str(sort_index)
......
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