Commit 365bf676 authored by Petr Skoda's avatar Petr Skoda
Browse files

MDL-25536 fixed incorrect reading of plugin options in imsenterprise enrol plugin

parent 83da0942
......@@ -748,8 +748,7 @@ function load_role_mappings() {
$this->rolemappings = array();
foreach($imsroles as $imsrolenum=>$imsrolename) {
$this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename]
= $DB->get_field('config_plugins', 'value', array('name'=>'imsrolemap' . $imsrolenum));
$this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename] = $this->get_config('imsrolemap' . $imsrolenum);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment