[BUGFIX] Call to undefined method ElementConditionMatcher::setRecord() 05/21605/3
authorFrans Saris <franssaris@gmail.com>
Sun, 23 Jun 2013 11:16:55 +0000 (13:16 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 23 Jun 2013 14:19:40 +0000 (16:19 +0200)
Wrong usage of the new ElementConditionMatcher which results in a
fatal error.

Releases: 6.1, 6,2
Resolves: #49354
Change-Id: Ic460bb5c9ce81daa2f828866615bf2703ee56fd5
Reviewed-on: https://review.typo3.org/21605
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Form/FormEngine.php

index 93bb62b..cf6e520 100644 (file)
@@ -2937,7 +2937,7 @@ function ' . $evalData . '(value) {
                                                        $rotateLang = array($PA['_valLang']);
                                                }
                                                $conditionData = is_array($editData) ? $editData : array();
-                                               // Add current $row to data processed by isDisplayCondition()
+                                               // Add current $row to data processed by \TYPO3\CMS\Backend\Form\ElementConditionMatcher
                                                $conditionData['parentRec'] = $row;
                                                $tRows = array();
 
@@ -5960,9 +5960,7 @@ function ' . $evalData . '(value) {
                GeneralUtility::logDeprecatedFunction();
                /** @var $elementConditionMatcher \TYPO3\CMS\Backend\Form\ElementConditionMatcher */
                $elementConditionMatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\ElementConditionMatcher');
-               $elementConditionMatcher->setRecord($row);
-               $elementConditionMatcher->setFlexformValueKey($ffValueKey);
-               return $elementConditionMatcher->match($displayCond);
+               return $elementConditionMatcher->match($displayCond, $row, $ffValueKey);
        }
 
        /**
@@ -6310,5 +6308,4 @@ function ' . $evalData . '(value) {
 
 }
 
-
-?>
+?>
\ No newline at end of file