[BUGFIX] EXT:form: Fix rendering of text-input-fields 58/36258/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 25 Jan 2015 23:31:01 +0000 (00:31 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 25 Jan 2015 23:59:10 +0000 (00:59 +0100)
Attribute-check needs to take NULL into account as well.

Regression caused by change-id
I624c7da38c23429f68000e085dbd82c23fb7e834

Change-Id: I13ebad66de296b5a7f1befa8d2795edab4114f83
Resolves: #64359
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/36258
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/form/Classes/Domain/Factory/TypoScriptFactory.php

index 3b4f7c0..083d04a 100644 (file)
@@ -241,7 +241,7 @@ class TypoScriptFactory implements \TYPO3\CMS\Core\SingletonInterface {
                        $mandatoryAttributes = $element->getMandatoryAttributes();
                        foreach ($attributes as $attribute => $value) {
                                if (isset($arguments[$attribute]) || isset($arguments[$attribute . '.']) || in_array($attribute, $mandatoryAttributes) || !empty($value)) {
-                                       if ($arguments[$attribute] !== '') {
+                                       if ((string)$arguments[$attribute] !== '') {
                                                $value = $arguments[$attribute];
                                        } elseif (!empty($arguments[($attribute . '.')])) {
                                                $value = $arguments[$attribute . '.'];