Fix JavaScript error for ACL form fields in non-ajax forms
authorMatthias Schmidt <gravatronics@live.com>
Wed, 24 Jun 2020 15:40:43 +0000 (17:40 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 24 Jun 2020 15:40:43 +0000 (17:40 +0200)
See 6cce1152a855f636ac22689cbf531f3928f97506

com.woltlab.wcf/templates/__aclFormField.tpl
wcfsetup/install/files/acp/templates/__aclFormField.tpl

index 1b16c1c51dc75a37e956f37a7a004a297685fe21..66b47c108bfddb7dead76f5f9580283f98b376e5 100644 (file)
@@ -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()}
index 1b16c1c51dc75a37e956f37a7a004a297685fe21..66b47c108bfddb7dead76f5f9580283f98b376e5 100644 (file)
@@ -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()}