From afbff134ef0b010b079bf300d2c3763f868c2d57 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 24 Jun 2020 17:40:43 +0200 Subject: [PATCH] Fix JavaScript error for ACL form fields in non-ajax forms See 6cce1152a855f636ac22689cbf531f3928f97506 --- com.woltlab.wcf/templates/__aclFormField.tpl | 2 +- wcfsetup/install/files/acp/templates/__aclFormField.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/__aclFormField.tpl b/com.woltlab.wcf/templates/__aclFormField.tpl index 1b16c1c51d..66b47c108b 100644 --- a/com.woltlab.wcf/templates/__aclFormField.tpl +++ b/com.woltlab.wcf/templates/__aclFormField.tpl @@ -2,4 +2,4 @@ {include file='aclPermissions'} {/if} -{include file='aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=true} +{include file='aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=$field->getDocument()->isAjax()} diff --git a/wcfsetup/install/files/acp/templates/__aclFormField.tpl b/wcfsetup/install/files/acp/templates/__aclFormField.tpl index 1b16c1c51d..66b47c108b 100644 --- a/wcfsetup/install/files/acp/templates/__aclFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__aclFormField.tpl @@ -2,4 +2,4 @@ {include file='aclPermissions'} {/if} -{include file='aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=true} +{include file='aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=$field->getDocument()->isAjax()} -- 2.20.1