Fix the condition to detect multiple languages for boxes
authorAlexander Ebert <ebert@woltlab.com>
Tue, 22 Aug 2023 08:32:48 +0000 (10:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 22 Aug 2023 08:32:48 +0000 (10:32 +0200)
See https://www.woltlab.com/community/thread/301293-box-erstellen-html-text-template-funktioniert-nicht/

wcfsetup/install/files/acp/templates/boxAddDialog.tpl

index b3dae28a81dbaed6e7c5f337d98cc7306ebd2356..4e9b19abe4d7a2a68ff3736a4adb8651348345c7 100644 (file)
@@ -33,7 +33,7 @@
                
                const boxAddDialog = new AcpUiBoxAdd(
                        '{link controller='BoxAdd' encode=false}{literal}boxType={$boxType}&isMultilingual={$isMultilingual}{/literal}{/link}',
-                       {if $availableLanguages|count > 0}true{else}false{/if}
+                       {if $availableLanguages|count > 1}true{else}false{/if}
                );
                
                {if $showBoxAddDialog}