From: Alexander Ebert Date: Sat, 16 Sep 2023 16:45:07 +0000 (+0200) Subject: Skip the filter initialization if there are no projects X-Git-Tag: 6.0.0_RC_2~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ee7a9c50fca1d0583a51719c5b013f9b2257d88;p=GitHub%2FWoltLab%2FWCF.git Skip the filter initialization if there are no projects See https://www.woltlab.com/community/thread/301637-js-fehler-in-entwickler-werkzeuge-wenn-kein-projekt-vorhanden-ist/ --- diff --git a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl index 133d6c362c..ca8688325a 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl @@ -4,8 +4,11 @@ require(['WoltLabSuite/Core/Acp/Ui/Devtools/Project/FilterByName', 'WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup', 'Language'], function({ setup: setupFilterByName }, AcpUiDevtoolsProjectQuickSetup, Language) { Language.add('wcf.acp.devtools.project.quickSetup', '{jslang}wcf.acp.devtools.project.quickSetup{/jslang}'); - setupFilterByName(); AcpUiDevtoolsProjectQuickSetup.init(); + + {if $objects|count} + setupFilterByName(); + {/if} });