Hello,
I'm trying to create a required backoffice module param which allows zero as valid value.
I set up the field like this
array(
'col' => 2,
'type' => 'text',
'name' => 'PARAM_NAME',
'label' => $this->l('my label'),
'desc' => $this->l('my desc'),
'suffix' => $this->l('sfx'),
'required' => true,
),
And when I type in 0 and save I get an error message that fill in all required fields.
I could set required to false, but this data is required by an API and if not set it can cause all sorts of problems.
How can I allow zero as valid value?
oh I forgot. I'm using PS 1.7.6.1