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): ...@@ -564,12 +564,13 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator):
################################ ################################
# Modify if user modified his value # Modify if user modified his value
################################ ################################
if (found == 1) and \ # XXX Does not work when user select a value in a ListField
(value != display_text): # if (found == 1) and \
relation_editor_list = None # (value != display_text):
need_to_revalidate = 1 # relation_editor_list = None
REQUEST.set(relation_field_id, None) # need_to_revalidate = 1
break # REQUEST.set(relation_field_id, None)
# break
if value is None: if value is None:
value = display_text value = display_text
# Storing display_text as value is needed in this case # 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