diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php index 6019aa0..d6bd65f 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php @@ -65,11 +65,12 @@ class CheckboxViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormF * Renders the checkbox. * * @param boolean $checked Specifies that the input element should be preselected + * @param boolean $multiple Specifies whether this checkbox belongs to a multivalue (is part of a checkbox group) * @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception * @return string * @api */ - public function render($checked = NULL) { + public function render($checked = NULL, $multiple = NULL) { $this->tag->addAttribute('type', 'checkbox'); $nameAttribute = $this->getName(); @@ -89,8 +90,7 @@ class CheckboxViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormF $checked = in_array($valueAttribute, $propertyValue); } $nameAttribute .= '[]'; - } elseif (($multiple = FALSE) === TRUE) { - // @todo: implement correct as in Flow.Fluid + } elseif ($multiple === TRUE) { $nameAttribute .= '[]'; } elseif ($checked === NULL && $propertyValue !== NULL) { $checked = (boolean) $propertyValue === (boolean) $valueAttribute;