From c2d31e55dd7ee2708f3f0efddbf4cf78adda6ff9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Dec 2012 20:01:05 +0100 Subject: [PATCH] BUG Hiding group selections in "Settings" JS functionality was only applied to page-specific settings with similar fields, but not to SiteConfig settings. --- code/controllers/CMSSettingsController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/controllers/CMSSettingsController.php b/code/controllers/CMSSettingsController.php index 100769ab..338e1bf0 100644 --- a/code/controllers/CMSSettingsController.php +++ b/code/controllers/CMSSettingsController.php @@ -8,6 +8,12 @@ class CMSSettingsController extends LeftAndMain { static $tree_class = 'SiteConfig'; static $required_permission_codes = array('EDIT_SITECONFIG'); + public function init() { + parent::init(); + + Requirements::javascript(CMS_DIR . '/javascript/CMSMain.EditForm.js'); + } + public function getResponseNegotiator() { $neg = parent::getResponseNegotiator(); $controller = $this;