[BUGFIX] Fix initialization for checked attributes 46/40646/9
authorFrederic Gaus <frederic.gaus@flagbit.de>
Thu, 25 Jun 2015 14:10:00 +0000 (16:10 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 9 Dec 2015 05:00:01 +0000 (06:00 +0100)
Fix the phpDoc for checked attributes in CheckboxViewHelper
and RadioViewHelper

Fix the inititialization of the multiple parameter of the
CheckboxViewHelper

Resolves: #67225
Releases: master
Change-Id: I53dc8793e95f0c45077559ea14f92f268e0a834a
Reviewed-on: https://review.typo3.org/40646
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/RadioViewHelper.php

index 83a307c..bad20d1 100644 (file)
@@ -71,13 +71,13 @@ class CheckboxViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormF
     /**
      * Renders the checkbox.
      *
-     * @param bool $checked Specifies that the input element should be preselected
+     * @param bool|null $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
      * @api
      */
-    public function render($checked = null, $multiple = null)
+    public function render($checked = null, $multiple = false)
     {
         $this->tag->addAttribute('type', 'checkbox');
 
index 6b69102..0fdcafd 100644 (file)
@@ -73,7 +73,7 @@ class RadioViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFiel
     /**
      * Renders the checkbox.
      *
-     * @param bool $checked Specifies that the input element should be preselected
+     * @param bool|null $checked Specifies that the input element should be preselected
      * @return string
      * @api
      */