Fix ACLFormField UI potentially being hidden
authorMatthias Schmidt <gravatronics@live.com>
Tue, 18 Feb 2020 18:36:28 +0000 (19:36 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 18 Feb 2020 18:36:28 +0000 (19:36 +0100)
wcfsetup/install/files/js/WCF.ACL.js

index afd40fb20eec5f13649fdf1d90e7ae604de8303e..cb3567db1b20b539f03a968c0b012a757be83f1a 100644 (file)
@@ -321,6 +321,13 @@ if (COMPILER_TARGET_DEFAULT) {
                        // show container
                        this._container.show();
                        
+                       // Because the container might have been hidden before, we must ensure that
+                       // form builder field dependencies are checked again to avoid having ACL
+                       // form fields not being shown in form builder forms.
+                       require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager'], function(FormBuilderFieldDependencyManager) {
+                               FormBuilderFieldDependencyManager.checkDependencies();
+                       });
+                       
                        // pre-select an entry
                        this._selectFirstEntry();
                },