You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's fair to be able to associate '0' as label, in this case it shouldn't validate as empty label.
I tried to use empty label as condition because zephir documentation says that ‘Empty’ means the expression is null, is an empty string or an empty array. But that's not true and '0'also validates as false. So the only way to add '0' as a label is by explicitly check if it's numeric as condition.
Phalcon\Forms\Element::setLabel($label) render incorrect if $label = '0'.
Example:
$field = new Numeric('value');
$field->setLabel('0');
$field->label() // value
The text was updated successfully, but these errors were encountered: