From a570464bc3d005d0d1d4c1086637face68f7ede5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 6 May 2021 13:54:59 +0200 Subject: [PATCH] Fix JavaScript code for is-not-clicked form builder dependency Close #4194 --- .../templates/__isNotClickedFormFieldDependency.tpl | 4 ++-- .../files/acp/templates/__isNotClickedFormFieldDependency.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/__isNotClickedFormFieldDependency.tpl b/com.woltlab.wcf/templates/__isNotClickedFormFieldDependency.tpl index ea18b0bcd1..dfcf9103d6 100644 --- a/com.woltlab.wcf/templates/__isNotClickedFormFieldDependency.tpl +++ b/com.woltlab.wcf/templates/__isNotClickedFormFieldDependency.tpl @@ -1,6 +1,6 @@ -require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked'], function(IsNotClickedFieldDependency) { +require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked'], ({ IsNotClicked }) => { // dependency '{@$dependency->getId()}' - new IsNotClickedFieldDependency( + new IsNotClicked( '{@$dependency->getDependentNode()->getPrefixedId()}Container', '{@$dependency->getField()->getPrefixedId()}' ); diff --git a/wcfsetup/install/files/acp/templates/__isNotClickedFormFieldDependency.tpl b/wcfsetup/install/files/acp/templates/__isNotClickedFormFieldDependency.tpl index ea18b0bcd1..dfcf9103d6 100644 --- a/wcfsetup/install/files/acp/templates/__isNotClickedFormFieldDependency.tpl +++ b/wcfsetup/install/files/acp/templates/__isNotClickedFormFieldDependency.tpl @@ -1,6 +1,6 @@ -require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked'], function(IsNotClickedFieldDependency) { +require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked'], ({ IsNotClicked }) => { // dependency '{@$dependency->getId()}' - new IsNotClickedFieldDependency( + new IsNotClicked( '{@$dependency->getDependentNode()->getPrefixedId()}Container', '{@$dependency->getField()->getPrefixedId()}' ); -- 2.20.1