Commit 55985805 authored by Sebastien Robin's avatar Sebastien Robin

corrected variable, so the reverse sort with listbox can work properly


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2711 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a28b11af
......@@ -1264,7 +1264,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
index_list = [sort_index]
for index in index_list:
if index.find(' ') > 0:
new_index.append([x.strip() for x in sort_index.split(' ')])
new_index.append([x.strip() for x in index.split(' ')])
elif so is not None and len(so)==len(index_list):
new_index.append([index,so[index_list.index(index)]])
else:
......
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