diff --git a/Changes.md b/Changes.md index c99fd6c1..d524b71e 100644 --- a/Changes.md +++ b/Changes.md @@ -1,5 +1,9 @@ Version Information =================== +Version 3.9.1.4 - 07/03/2021 +---------------------------- + 1. Fix intended setting values are changed. + Version 3.9.1.3 - 04/03/2021 ---------------------------- 1. Improve colour picker to show the initial value in the current / preview colour boxes. diff --git a/lib.php b/lib.php index 2e02d97c..79d860f7 100644 --- a/lib.php +++ b/lib.php @@ -1006,7 +1006,7 @@ private function generate_default_entry($settingname, $defaultindex, $values) { $defaultvalue = get_config('format_topcoll', 'default'.$settingname); $defarray = array($defaultindex => new lang_string('default', 'format_topcoll', $values[$defaultvalue])); - return array_merge($defarray, $values); + return array_replace($defarray, $values); } /** diff --git a/version.php b/version.php index 4191c460..e225d490 100644 --- a/version.php +++ b/version.php @@ -33,8 +33,8 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2020071808; +$plugin->version = 2020071809; $plugin->maturity = MATURITY_STABLE; $plugin->requires = 2020061500.00; // 3.9 (Build: 20200615). $plugin->component = 'format_topcoll'; -$plugin->release = '3.9.1.3'; +$plugin->release = '3.9.1.4';