Commit 0454bdf6 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't try to validate fields from hidden group.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10141 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 260866eb
......@@ -405,7 +405,10 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# import pdb; pdb.set_trace()
result = {}
errors = []
for field in self.get_fields():
for group in self.get_groups():
if group.lower() == 'hidden':
continue
for field in self.get_fields_in_group(group):
# skip any field we don't need to validate
if not field.need_validate(REQUEST):
continue
......
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