From: Matthias Schmidt Date: Wed, 24 Jun 2020 15:40:43 +0000 (+0200) Subject: Fix JavaScript error for ACL form fields in non-ajax forms X-Git-Tag: 5.3.0_Alpha_1~200 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=afbff134ef0b010b079bf300d2c3763f868c2d57;p=GitHub%2FWoltLab%2FWCF.git Fix JavaScript error for ACL form fields in non-ajax forms See 6cce1152a855f636ac22689cbf531f3928f97506 --- 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()}