Issue Bug Closed

#31920Form element with attribute value "0"

Arjen Hoekema 11/18/11, 13:37 updated 10/02/18, 12:19

Description

It should be possible to create form fields/elements with attributes containing “0”.

Currently all attributes are checked with “empty()” which returns false upon 0 and “0”.

Functions which contain “empty()” check:
tx_form_View_Form_Element_Abstract->setAttribute
tx_form_View_Form_Element_Abstract->setAttributes
tx_form_View_Form_Element_Abstract->setAttributeWithValueofOtherAttribute

Reviews 2