From e606c14e2e4069bd4eb9acd843d49dcf31115980 Mon Sep 17 00:00:00 2001 From: Oliver Bartsch <bo@cedev.de> Date: Wed, 18 Jan 2023 12:06:21 +0100 Subject: [PATCH] [BUGFIX] Load global event handler in file browser The "display thumbnails" checkbox in the file browser is using the global event handler functionality. This checkbox is now working again by loading the required JS module, which was previously available due to the indirect usage of the ModuleTemplate. Resolves: #99601 Releases: main Change-Id: I7872b750d183ec77fb80c35d5ba4a03ed94af8ef Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77468 Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> --- typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php b/typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php index 02bbe295320d..9b1ab976d78f 100644 --- a/typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php +++ b/typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php @@ -103,6 +103,7 @@ class FileBrowser extends AbstractElementBrowser implements ElementBrowserInterf $this->pageRenderer->loadJavaScriptModule('@typo3/backend/browse-files.js'); $this->pageRenderer->loadJavaScriptModule('@typo3/backend/tree/file-storage-browser.js'); $this->pageRenderer->loadJavaScriptModule('@typo3/backend/multi-record-selection.js'); + $this->pageRenderer->loadJavaScriptModule('@typo3/backend/global-event-handler.js'); $thumbnailConfig = $this->getBackendUser()->getTSConfig()['options.']['file_list.']['thumbnail.'] ?? []; if (isset($thumbnailConfig['width']) && MathUtility::canBeInterpretedAsInteger($thumbnailConfig['width'])) { -- GitLab