[BUGFIX] Correctly append additionalTreelistUpdateFields 77/25277/2
authorBart Dubelaar <bartdubelaar@gmail.com>
Tue, 27 Nov 2012 00:45:21 +0000 (01:45 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 11 Nov 2013 18:12:41 +0000 (19:12 +0100)
The list of additionalTreelistUpdateFields was not correctly
appended to the updateRequiringFields array.

Resolves: #37948
Releases: 6.2, 6.1, 6.0, 4.5
Change-Id: I7df514649203bf607a6ac3550c875c429e0f7328
Reviewed-on: https://review.typo3.org/25277
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/frontend/Classes/Hooks/TreelistCacheUpdateHooks.php

index 7a13fa2..95107a6 100644 (file)
@@ -57,7 +57,7 @@ class TreelistCacheUpdateHooks {
                // example: $TYPO3_CONF_VARS['BE']['additionalTreelistUpdateFields'] .= ',my_field';
                if (!empty($GLOBALS['TYPO3_CONF_VARS']['BE']['additionalTreelistUpdateFields'])) {
                        $additionalTreelistUpdateFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['BE']['additionalTreelistUpdateFields'], TRUE);
-                       $this->updateRequiringFields += $additionalTreelistUpdateFields;
+                       $this->updateRequiringFields = array_merge($this->updateRequiringFields, $additionalTreelistUpdateFields);
                }
        }
 
@@ -333,4 +333,4 @@ class TreelistCacheUpdateHooks {
 }
 
 
-?>
\ No newline at end of file
+?>