Commit 9dd49de9 authored by Aurel's avatar Aurel

call on the editor of multi-relation string field must set the

'default_text' on the default field id instead of the uid list, this
prevent from displaying uid to the user if any other field of the form
is not validated


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40364 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0295c25
......@@ -405,7 +405,7 @@ class MultiRelationEditor:
for value, uid, display_text, relation_key, item_key in \
self.relation_editor_list:
value_list.append(value)
value_list.append(display_text)
if uid is not None:
# Decorate the request so that we can display
# the select item in a popup
......@@ -600,7 +600,7 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator):
####################################
# User validate the form
####################################
if need_to_revalidate == 1:
if need_to_revalidate == 1:
# else:
####################################
# Check the default field
......@@ -771,7 +771,7 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator):
#####################################
# Validate MultiRelation field
#####################################
#####################################
if raising_error_needed:
# Raise error
self.raise_error(raising_error_value, field)
......
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