Commit 2a0eef51 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: user can now select a value in a ListField.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf82ae09
......@@ -564,12 +564,13 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator):
################################
# Modify if user modified his value
################################
if (found == 1) and \
(value != display_text):
relation_editor_list = None
need_to_revalidate = 1
REQUEST.set(relation_field_id, None)
break
# XXX Does not work when user select a value in a ListField
# if (found == 1) and \
# (value != display_text):
# relation_editor_list = None
# need_to_revalidate = 1
# REQUEST.set(relation_field_id, None)
# break
if value is None:
value = display_text
# Storing display_text as value is needed in this case
......
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