[BUGFIX] Correctly append additionalTreelistUpdateFields 79/25279/2
authorBart Dubelaar <bartdubelaar@gmail.com>
Mon, 11 Nov 2013 18:14:55 +0000 (19:14 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 11 Nov 2013 18:16:49 +0000 (19:16 +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/25279
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php

index c2d9aae..47f1ee8 100644 (file)
@@ -67,7 +67,7 @@ class tx_cms_treelistCacheUpdate {
                                true
                        );
 
-                       $this->updateRequiringFields += $additionalTreelistUpdateFields;
+                       $this->updateRequiringFields = array_merge($this->updateRequiringFields, $additionalTreelistUpdateFields);
                }
 
        }