Commit 55060973 authored by Romain Courteaud's avatar Romain Courteaud

Do not modify result of validation.

No ParallelListField should have a subform propoerty anymore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16763 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bcf98fa
......@@ -188,7 +188,6 @@ class ParallelListValidator(Validator.MultiSelectionValidator):
except ValidationError:
is_sub_field_required = 1
result_list = [x for x in result_list if x!='']
if result_list == []:
if field.get_value('required'):
self.raise_error('required_not_found', field)
......@@ -279,9 +278,6 @@ def generateSubForm(self, value, REQUEST):
'value': value_list,
})
hash_list.append(default_sub_field_property_dict)
# XXX Clean up old ParallelListField
if hasattr(self, 'sub_form'):
delattr(self, 'sub_form')
return hash_list
......@@ -289,3 +285,4 @@ def generateSubForm(self, value, REQUEST):
from Products.ERP5Form.ProxyField import registerOriginalGetValueClassAndArgument
registerOriginalGetValueClassAndArgument(ParallelListField,
('title', 'required', 'size', 'default', 'first_item', 'items'))
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