Commit cde1413b authored by Sebastien Robin's avatar Sebastien Robin

make sure a field need validation before returning it to Base_edit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3134 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96948b7e
......@@ -2025,6 +2025,7 @@ class ListBoxValidator(Validator.Validator):
my_field_id = '%s_%s' % (field.id, alias)
if form.has_field( my_field_id ):
my_field = form.get_field(my_field_id)
if my_field.get_value('editable') and field.need_validate(REQUEST):
key = 'field_' + my_field.id + '_%s' % o.uid
error_result_key = my_field.id + '_%s' % o.uid
REQUEST.cell = o
......@@ -2051,6 +2052,7 @@ class ListBoxValidator(Validator.Validator):
my_field_id = '%s_%s' % (field.id, alias)
if form.has_field( my_field_id ):
my_field = form.get_field(my_field_id)
if my_field.get_value('editable') and field.need_validate(REQUEST):
tales_expr = my_field.tales.get('default', "")
key = 'field_' + my_field.id + '_%s' % o.uid
error_result_key = my_field.id + '_%s' % o.uid
......
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