[FOLLOWUP][BUGFIX] Fix initialization for checked attributes 46/45246/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 14 Dec 2015 16:28:30 +0000 (17:28 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 14 Dec 2015 16:32:27 +0000 (17:32 +0100)
Only specify a *single* type information for parameters, otherwise
Fluid fails to extract the right type and does not validate the boolean
expressions anymore.

Resolves: #67225
Releases: master
Change-Id: Ibf9873a74e94fb731a3440da25024853663e9c7e
Reviewed-on: https://review.typo3.org/45246
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/RadioViewHelper.php

index bad20d1..04f5ef9 100644 (file)
@@ -71,7 +71,7 @@ class CheckboxViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormF
     /**
      * Renders the checkbox.
      *
-     * @param bool|null $checked Specifies that the input element should be preselected
+     * @param bool $checked Specifies that the input element should be preselected
      * @param bool $multiple Specifies whether this checkbox belongs to a multivalue (is part of a checkbox group)
      * @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception
      * @return string
index 0fdcafd..6b69102 100644 (file)
@@ -73,7 +73,7 @@ class RadioViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFiel
     /**
      * Renders the checkbox.
      *
-     * @param bool|null $checked Specifies that the input element should be preselected
+     * @param bool $checked Specifies that the input element should be preselected
      * @return string
      * @api
      */