Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Hiding group selections in "Settings"

JS functionality was only applied to page-specific settings
with similar fields, but not to SiteConfig settings.
  • Loading branch information...
commit c2d31e55dd7ee2708f3f0efddbf4cf78adda6ff9 1 parent 5b2cc19
Ingo Schommer chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 code/controllers/CMSSettingsController.php
6 code/controllers/CMSSettingsController.php
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.