Commit 669341df authored by Romain Courteaud's avatar Romain Courteaud

Fix errors commited in previous patch.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11759 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9a3b275
...@@ -687,7 +687,8 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator): ...@@ -687,7 +687,8 @@ 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
related_object = relation_list[0] relation_uid = relation_uid_list[0]
related_object = relation_list[0].getObject()
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