Commit 9d6fce49 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

explicitly convert to list otherwise sort will not work.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29959 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4eb7e87
......@@ -167,7 +167,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
result = self.objectIds()
else:
# XXX Incompatible with ERP5Type per portal type categories
result = context._categories[:]
result = list(context._categories[:])
if sort:
result.sort()
return result
......
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