Commit 93a72a6b authored by Sebastien Robin's avatar Sebastien Robin

we should not assume that the catalog will returns all keys, it is better to retrieve the property


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1380 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 60ca4c55
......@@ -143,7 +143,7 @@ try:
for value in new_value:
catalog_index = my_field.get_value('catalog_index')
kw[catalog_index] = value
complete_value = context.portal_catalog(**kw)[0][catalog_index]
complete_value = context.portal_catalog(**kw)[0].getObject().getProperty(catalog_index)
complete_value_list.append(complete_value)
new_value = complete_value_list
uids = getOrderedUids(relation_uid_list, new_value, my_field.get_value('catalog_index'))
......
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