Commit 4b6e7bd6 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.

Resolves: #96566
Related: #96323
Releases: main
Change-Id: I5a91abb2d12f56fc955266c1723c98ffa024fc6f
parent fc95fe87
Pipeline #22352 passed with stages
in 11 minutes and 10 seconds
......@@ -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