Commit df456f57 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2429 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc17e3e4
...@@ -349,8 +349,6 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField ...@@ -349,8 +349,6 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField
# Will be interpreted by Base_edit as "delete relation" (with no uid and value = '') # Will be interpreted by Base_edit as "delete relation" (with no uid and value = '')
if REQUEST.has_key( relation_field_id ): if REQUEST.has_key( relation_field_id ):
# user click on the wheel: get the selection, and store the relation
if value_list == ['%']:
# we must know if user validate the form or click on the wheel button # we must know if user validate the form or click on the wheel button
relation_uid_list = REQUEST.get(relation_field_id, None) relation_uid_list = REQUEST.get(relation_field_id, None)
if relation_uid_list != None: if relation_uid_list != None:
...@@ -370,9 +368,6 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField ...@@ -370,9 +368,6 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField
relation_editor_list.append( (i, '%', str(relation_uid), display_text) ) relation_editor_list.append( (i, '%', str(relation_uid), display_text) )
return MultiRelationEditor(field.id, base_category, portal_type, portal_type_item, catalog_index, relation_setter_id, relation_editor_list) return MultiRelationEditor(field.id, base_category, portal_type, portal_type_item, catalog_index, relation_setter_id, relation_editor_list)
else:
# value must be define to ['%'] to see all objects in listbox
raise
else: else:
......
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