Commit ac2fae0a 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
parent c17950e1
Pipeline #22357 passed with stages
in 11 minutes and 9 seconds
......@@ -563,7 +563,7 @@ class InlineControlContainer extends AbstractContainer
$item .= htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/'));
$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