[BUGFIX] Allow attribute value "0" in EXT:form elements 21/9021/6
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 14 Feb 2012 12:17:20 +0000 (13:17 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Dec 2014 19:42:34 +0000 (20:42 +0100)
commit82c96ecbeccfc1c0b86c13e04bf46f2890b2e012
treea48dc36bd737b168b5353d86f3d1fa41addf357f
parentee578932b0608ac6b7ebaacbeabc11e8a4ab7175
[BUGFIX] Allow attribute value "0" in EXT:form elements

If an attribute value of "0" is set in an EXT:form element (e.g.
TEXTLINE) currently the input element in the frontend is rendered with
an empty value "".

Do not check attribute values with empty() to allow "0" values.

Resolves: #31920
Releases: master, 6.2
Change-Id: I624c7da38c23429f68000e085dbd82c23fb7e834
Reviewed-on: http://review.typo3.org/9021
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/Domain/Factory/TypoScriptFactory.php
typo3/sysext/form/Classes/View/Confirmation/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Form/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php