Commit eb5ce022 authored by Nicolas Delaby's avatar Nicolas Delaby

Do not try to validate field's listbox_editable_column if they are not enabled


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41885 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 759de55c
......@@ -2834,8 +2834,9 @@ class ListBoxValidator(Validator.Validator):
editable_field = editable_field_dict.get(alias)
if editable_field is not None:
REQUEST.set('cell', o)
if editable_field.get_value('editable', REQUEST=REQUEST) \
and field.need_validate(REQUEST):
editable = editable_field.get_value('editable', REQUEST=REQUEST)
enabled = editable_field.get_value('enabled', REQUEST=REQUEST)
if editable and enabled and field.need_validate(REQUEST):
error_result_key = '%s_%s' % (editable_field.id, o.uid)
key = 'field_' + error_result_key
try:
......
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