[BUGFIX] RadioViewHelper correct property checked mapping 36/43736/3
authorAndreas Allacher <andreas.allacher@gmx.at>
Fri, 2 Oct 2015 10:18:26 +0000 (12:18 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 21 Oct 2015 21:02:39 +0000 (23:02 +0200)
AbstractEntity objects are not correctly mapped as checked.
Previously the checked comparison failed because the value
attribute was converted to the identifier but not the property value.

Change-Id: I2f2500b394522647c4c87ed29b6f5cabbe009a9c
Resolves: #70303
Releases: master
Reviewed-on: https://review.typo3.org/43736
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/fluid/Classes/ViewHelpers/Form/RadioViewHelper.php

index d0885bf..6b69102 100644 (file)
@@ -90,6 +90,7 @@ class RadioViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFiel
         }
         if ($checked === null && $propertyValue === null) {
             $propertyValue = $this->getPropertyValue();
+            $propertyValue = $this->convertToPlainValue($propertyValue);
         }
 
         if ($propertyValue !== null) {