Actions
Bug #85353
closedincludeJSLibs gets overwritten by includeJSFooterlibs if same name is used
Start date:
2018-06-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
There is no differentation between the two arrays includeJSLibs
and includeJSFooterlibs
if JavaScripts are included by using the same reference name.
If you include JavaScript files like this:
page { includeJSLibs { 100 = EXT:your_ext/Resources/Public/JavaScript/javascript1.js javascript = EXT:your_ext/Resources/Public/JavaScript/javascript2.js } includeJSFooterlibs { 100 = EXT:your_ext/Resources/Public/JavaScript/javascript3.js javascript = EXT:your_ext/Resources/Public/JavaScript/javascript4.js } }
only the two JavaScripts from includeJSFooterlibs
are rendered in the frontend.
I guess it's worth mentioning that this error was not reproducible with includeCSS
and includeCSSLibs
.
This issue was mentioned first in Slack by M. Stöckl (https://typo3.slack.com/archives/C025BQLFA/p1529333764000650) and referenced in https://forge.typo3.org/issues/85297?issue_count=66&issue_position=1&next_issue_id=85154#note-6
Actions