Commit 77988784 authored by Romain Courteaud's avatar Romain Courteaud

Added sort parameter when using portal_catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f26341c
......@@ -428,6 +428,7 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField
kw ={}
kw[catalog_index] = value
kw['portal_type'] = portal_type
kw['sort_on'] = catalog_index
# Get the query results
relation_list = portal_catalog(**kw)
relation_uid_list = map(lambda x: x.uid, relation_list)
......
......@@ -349,6 +349,7 @@ class RelationStringFieldValidator(Validator.StringValidator):
kw ={}
kw[catalog_index] = value
kw['portal_type'] = portal_type
kw['sort_on'] = catalog_index
if len(parameter_list) > 0:
for k,v in parameter_list:
kw[k] = v
......
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