[Html-widget] Select and '0' value
t at funkreich.de
Fri Sep 1 16:32:00 CEST 2006
I have defined a select element like this:
$w->element( 'Select', 'status' )->options( '0' => 'Disabled', '1' =>
'Activated', '2' => 'Pending' );
Unfortunately, when submitting the form, option '0' => 'Disabled' is
considered as an error (I suppose because its value is '0') and the
form is tagged as invalid, although '0' is a perfectly valid value.
I have no explicit constraints on the form.
Any ideas on how to fix this?
More information about the Html-widget