Commit 68213530 authored by Sebastien Robin's avatar Sebastien Robin

all fields should not be required by default


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2302 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79b4f80d
......@@ -99,6 +99,18 @@ def SelectionValidator_validate(self, field, key, REQUEST):
SelectionValidator.validate = SelectionValidator_validate
# The required field should have a default value to 0
from Products.Formulator.DummyField import fields
StringBaseValidator_required = fields.CheckBoxField('required',
title='Required',
description=(
"Checked if the field is required; the user has to fill in some "
"data."),
default=0)
StringBaseValidator.required = StringBaseValidator_required
from Products.Formulator.Validator import SelectionValidator
def SelectionValidator_validate(self, field, key, REQUEST):
......
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