From a02312c1d63c5e6b3b4e5f0312e5ba018b4712f7 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Mon, 17 Nov 2014 14:40:46 +0800 Subject: [PATCH] MDL-48250 enrol_ldap: set default category As in other enrol plugins (database), set default category to 1 (pointing to Miscellaneous) --- enrol/ldap/settingslib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/enrol/ldap/settingslib.php b/enrol/ldap/settingslib.php index f6616e70632..c7549d1baec 100644 --- a/enrol/ldap/settingslib.php +++ b/enrol/ldap/settingslib.php @@ -202,7 +202,7 @@ class admin_setting_ldap_rolemapping extends admin_setting { */ class enrol_ldap_admin_setting_category extends admin_setting_configselect { public function __construct($name, $visiblename, $description) { - parent::__construct($name, $visiblename, $description, null, null); + parent::__construct($name, $visiblename, $description, 1, null); } public function load_choices() { @@ -211,7 +211,6 @@ class enrol_ldap_admin_setting_category extends admin_setting_configselect { } $this->choices = make_categories_options(); - $this->defaultsetting = key($this->choices); return true; } } -- 2.11.4.GIT