[BUGFIX] Allow value 0 in textfields with eval int 03/38103/2
authorMarkus Klein <klein.t3@reelworx.at>
Tue, 24 Mar 2015 13:04:32 +0000 (14:04 +0100)
committerBenjamin Mack <benni@typo3.org>
Sat, 28 Mar 2015 09:28:52 +0000 (10:28 +0100)
Fix a wrong JS parameter.

Releases: master, 6.2
Resolves: #65965
Change-Id: I8f85d2a5e9133c7da351821d0fd73a8c6a59b46f
Reviewed-on: http://review.typo3.org/38103
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Element/InputElement.php

index 2102925..1c7901d 100644 (file)
@@ -145,7 +145,7 @@ class InputElement extends AbstractFormElement {
                                        }
                        }
                }
-               $paramsList = '\'' . $additionalInformation['itemFormElName'] . '\',\'' . implode(',', $evalList) . '\',\'' . trim($config['is_in']) . '\',' . (isset($config['checkbox']) ? 1 : 0) . ',\'' . $config['checkbox'] . '\'';
+               $paramsList = '\'' . $additionalInformation['itemFormElName'] . '\',\'' . implode(',', $evalList) . '\',\'' . trim($config['is_in']) . '\',' . ($checkboxIsset ? 1 : 0) . ',\'' . $config['checkbox'] . '\'';
                $additionalInformation['fieldChangeFunc'] = array_merge(array('typo3form.fieldGet' => 'typo3form.fieldGet(' . $paramsList . ');'), $additionalInformation['fieldChangeFunc']);
 
                // set classes