Commit b90843c8 authored by Frederic Massart's avatar Frederic Massart
Browse files

MDL-56168 theme_boost: Cannot use a null value for colour pickers

parent d4566644
......@@ -43,11 +43,11 @@ if ($ADMIN->fulltree) {
$page->add($setting);
// Variable $body-color.
// We do not set a default value because the default colour should come from the preset.
// We use an empty default value because the default colour should come from the preset.
$name = 'theme_boost/brandcolor';
$title = get_string('brandcolor', 'theme_boost');
$description = get_string('brandcolor_desc', 'theme_boost');
$setting = new admin_setting_configcolourpicker($name, $title, $description, null, null, false);
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
......
......@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2016100400.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2016100400.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
......
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