[BUGFIX] Fix SuggestWizard usage within FlexForms 58/43758/3
authorStephan Großberndt <stephan@grossberndt.de>
Sat, 3 Oct 2015 14:02:55 +0000 (16:02 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 14 Oct 2015 09:26:39 +0000 (11:26 +0200)
Pass info that a specific field is processed to
BackendUtility::getFlexFormDS() so hooks registered there (e.g.
EXT:gridelements) receive the field name.

Resolves: #69301
Releases: master
Change-Id: I9b8438e5c272902bd6b07c97d2e5335bff97da16
Reviewed-on: http://review.typo3.org/43758
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Wizard/SuggestWizard.php

index 3871d0a..d098f71 100644 (file)
@@ -284,7 +284,7 @@ class SuggestWizard
 
             $flexfieldTCAConfig = $GLOBALS['TCA'][$table]['columns'][$parts[0]]['config'];
             // @todo: should be done via data preparation, resolveAllSheetsInDS() can be deprecated then
-            $flexformDSArray = BackendUtility::getFlexFormDS($flexfieldTCAConfig, $row, $table);
+            $flexformDSArray = BackendUtility::getFlexFormDS($flexfieldTCAConfig, $row, $table, $parts[0]);
             $flexformDSArray = GeneralUtility::resolveAllSheetsInDS($flexformDSArray);
             $flexformElement = $parts[count($parts) - 2];
             $continue = true;