[BUGFIX] Use unique keys for includeJSLibs and addJsFooterLibrary 60/57360/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 23 Jun 2018 18:23:52 +0000 (20:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 24 Jun 2018 22:02:36 +0000 (00:02 +0200)
As both TS configurations use its key the latter must use a prefix
to avoid an instant override of rendered JS file.

Resolves: #85353
Releases: master, 8.7
Change-Id: Icb685eb0ed278aafead274c1fcf86436c9e6865d
Reviewed-on: https://review.typo3.org/57360
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Page/PageRenderer.php

index bd4ca41..99b5f15 100644 (file)
@@ -1081,6 +1081,7 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface
         if (!$type) {
             $type = 'text/javascript';
         }
+        $name .= '_jsFooterLibrary';
         if (!in_array(strtolower($name), $this->jsLibs)) {
             $this->jsLibs[strtolower($name)] = [
                 'file' => $file,