Commit 35e79588 authored by Jérome Perrin's avatar Jérome Perrin

When the user click the wheel, select nothing and click "Update relation", do...

When the user click the wheel, select nothing and click "Update relation", do nothing instead of raising an inapropriate error message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4410 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3261e91
...@@ -346,7 +346,7 @@ class RelationStringFieldValidator(Validator.StringValidator): ...@@ -346,7 +346,7 @@ class RelationStringFieldValidator(Validator.StringValidator):
if type(relation_uid) in (type([]), type(())): if type(relation_uid) in (type([]), type(())):
if len( relation_uid ) == 0: if len( relation_uid ) == 0:
# No object was selected... # No object was selected...
self.raise_error('relation_result_too_long', field) return None
else: else:
relation_uid = relation_uid[0] relation_uid = relation_uid[0]
......
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