Commit c9e9d388 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

here, x[0] is a Products.ERP5Type.Message.Message object, so we need to sort...

here, x[0] is a Products.ERP5Type.Message.Message object, so we need to sort by str(x[0]) otherwise the sort result is unexpectable.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30027 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 997b8190
...@@ -289,7 +289,7 @@ def getSearchDialog(self, REQUEST=None): ...@@ -289,7 +289,7 @@ def getSearchDialog(self, REQUEST=None):
field_id='your_category_list')) field_id='your_category_list'))
items = [('', '')] + sorted([(translateString(x.title), x.id) for x items = [('', '')] + sorted([(translateString(x.title), x.id) for x
in workflow.states.objectValues()], in workflow.states.objectValues()],
key=lambda x: x[0]) key=lambda x:str(x[0]))
field._surcharged_edit( field._surcharged_edit(
dict(title=translateString(workflow.title), dict(title=translateString(workflow.title),
items=items, items=items,
......
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