[BUGFIX] Retrieve correct fieldname for condition lookup 97/41897/7
authorBenjamin Serfhos <serfhos@gmail.com>
Thu, 23 Jul 2015 16:10:48 +0000 (18:10 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 10 Aug 2015 21:22:16 +0000 (23:22 +0200)
DisplayCond for sheets in flexforms should allow extbase
parameters, eg: "settings.data".

Resolves: #68493
Releases: master
Change-Id: If5e5c3396972758a022f67606670892327e0d180
Reviewed-on: http://review.typo3.org/41897
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/Container/AbstractContainer.php

index 4415126..45aa55f 100644 (file)
@@ -273,8 +273,8 @@ abstract class AbstractContainer extends AbstractNode {
                $fakeRow = array();
                switch ($splitCondition[0]) {
                        case 'FIELD':
-                               list($_sheetName, $fieldName) = GeneralUtility::trimExplode('.', $splitCondition[1]);
-                               $fieldValue = $flexFormData[$_sheetName][$flexFormLanguage][$fieldName];
+                               list($sheetName, $fieldName) = GeneralUtility::trimExplode('.', $splitCondition[1], FALSE, 2);
+                               $fieldValue = $flexFormData[$sheetName][$flexFormLanguage][$fieldName];
                                $splitCondition[1] = $fieldName;
                                $displayCondition = join(':', $splitCondition);
                                $fakeRow = array($fieldName => $fieldValue);