Commit 90d9f208 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not use the uid to get the object from catalog when the object is directly available.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11677 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19cf0161
...@@ -687,8 +687,7 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator): ...@@ -687,8 +687,7 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator):
raising_error_value = 'relation_result_too_long' raising_error_value = 'relation_result_too_long'
elif len(relation_list) == 1: elif len(relation_list) == 1:
# If the length is 1, return uid # If the length is 1, return uid
relation_uid = relation_uid_list[0] related_object = relation_list[0]
related_object = portal_catalog.getObject(relation_uid)
if related_object is not None: if related_object is not None:
display_text = str(related_object.getProperty(catalog_index)) display_text = str(related_object.getProperty(catalog_index))
# Modify the value, in order to let the user # Modify the value, in order to let the user
......
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