[BUGFIX] Suggest for group-field in FlexForm does not work anymore 97/41997/3
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 27 Jul 2015 18:55:05 +0000 (20:55 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 27 Jul 2015 19:18:50 +0000 (21:18 +0200)
Wrong typehint in overrideFieldNameAndConfigurationForFlexform
generates an exception with flexform. Remove the typehint to solve
the problem

Resolves: #68547
Releases: master
Change-Id: I0b5ff1efed5a23eb86be98d77171240c0d08a989
Reviewed-on: http://review.typo3.org/41997
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Form/Wizard/SuggestWizard.php

index ef2f97a..550f619 100644 (file)
@@ -254,9 +254,9 @@ class SuggestWizard {
         * @param string $table
         * @param string &$field The field identifier, either a simple table field or a Flexform field path separated with |
         * @param array $row The row we're dealing with; optional (only required for Flexform records)
-        * @param array &$fieldConfig
+        * @param array|NULL &$fieldConfig
         */
-       protected function overrideFieldNameAndConfigurationForFlexform($table, &$field, array $row, array &$fieldConfig) {
+       protected function overrideFieldNameAndConfigurationForFlexform($table, &$field, array $row, &$fieldConfig) {
                // check if field is a flexform reference
                if (strpos($field, '|') === FALSE) {
                        $fieldConfig = $GLOBALS['TCA'][$table]['columns'][$field]['config'];