Commit cf7e4f22 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Avoid duplicate DragUploader initialization

The DragUploader module initializes itself by calling
initialize() as last execution step, therefore the
function does not need to be called a second time.

Releases: main, 11.5
Resolves: #96566
Related: #96323
Change-Id: I5a91abb2d12f56fc955266c1723c98ffa024fc6f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73116

Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent c17950e1
......@@ -563,7 +563,7 @@ class InlineControlContainer extends AbstractContainer
$item .= htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:file_upload.select-and-submit'));
$item .= '</button>';
$this->requireJsModules[] = JavaScriptModuleInstruction::forRequireJS('TYPO3/CMS/Backend/DragUploader')->invoke('initialize');
$this->requireJsModules[] = JavaScriptModuleInstruction::forRequireJS('TYPO3/CMS/Backend/DragUploader');
}
if (!empty($onlineMediaAllowed) && $showByUrl) {
$buttonStyle = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment