[BUGFIX] selected = 1 doesn't work in FormContentObject 82/20282/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 28 Apr 2013 22:01:20 +0000 (00:01 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Aug 2013 14:47:41 +0000 (16:47 +0200)
Wrong variable is used to set selected correctly.

Change-Id: I90623339c4d13eb07d7e5ef87e1b4e3aa8cf147e
Resolves: #43893
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/20282
Reviewed-by: uwe trotzek
Tested-by: uwe trotzek
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Classes/ContentObject/FormContentObject.php

index bd90545..9fce082 100644 (file)
@@ -96,7 +96,7 @@ class FormContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConten
                                                                        $temp_valueArray = array();
                                                                        $valueArrayLabel = isset($singleKey_valueArray['label.']) ? $this->cObj->stdWrap($singleKey_valueArray['label'], $singleKey_valueArray['label.']) : $singleKey_valueArray['label'];
                                                                        list($temp_valueArray[0]) = explode('=', $valueArrayLabel);
-                                                                       $selected = isset($singleKeyArray['selected.']) ? $this->cObj->stdWrap($singleKeyArray['selected'], $singleKeyArray['selected.']) : $singleKeyArray['selected'];
+                                                                       $selected = isset($singleKey_valueArray['selected.']) ? $this->cObj->stdWrap($singleKey_valueArray['selected'], $singleKey_valueArray['selected.']) : $singleKey_valueArray['selected'];
                                                                        if ($selected) {
                                                                                $temp_valueArray[0] = '*' . $temp_valueArray[0];
                                                                        }
@@ -634,4 +634,4 @@ class FormContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConten
 }
 
 
-?>
\ No newline at end of file
+?>