Commit 9e226fa1 authored by Sebastien Robin's avatar Sebastien Robin

added sorted listbox


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@632 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2b92217
......@@ -48,7 +48,9 @@ try:
if has_listbox:
listbox_line_list = []
listbox = getattr(request,'listbox',None)
for key in listbox.keys():
listbox_keys = listbox.keys()
listbox_keys.sort()
for key in listbox_keys:
listbox_line = listbox[key]
listbox_line['listbox_key'] = key
listbox_line_list.append(listbox[key])
......
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