From 073987305250c9a39a0b46f061d937c1e540a410 Mon Sep 17 00:00:00 2001 From: Andrew Robert Nicols Date: Wed, 23 Jan 2013 22:23:29 +0000 Subject: [PATCH] MDL-37548 Show the incorrect value in a colour picker after validation --- lib/adminlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index ba994c1e74c..231f9642a30 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -8025,7 +8025,7 @@ class admin_setting_configcolourpicker extends admin_setting { $PAGE->requires->js_init_call('M.util.init_colour_picker', array($this->get_id(), $this->previewconfig)); $content = html_writer::start_tag('div', array('class'=>'form-colourpicker defaultsnext')); $content .= html_writer::tag('div', $OUTPUT->pix_icon('i/loading', get_string('loading', 'admin'), 'moodle', array('class'=>'loadingicon')), array('class'=>'admin_colourpicker clearfix')); - $content .= html_writer::empty_tag('input', array('type'=>'text','id'=>$this->get_id(), 'name'=>$this->get_full_name(), 'value'=>$this->get_setting(), 'size'=>'12')); + $content .= html_writer::empty_tag('input', array('type'=>'text','id'=>$this->get_id(), 'name'=>$this->get_full_name(), 'value'=>$data, 'size'=>'12')); if (!empty($this->previewconfig)) { $content .= html_writer::empty_tag('input', array('type'=>'button','id'=>$this->get_id().'_preview', 'value'=>get_string('preview'), 'class'=>'admin_colourpicker_preview')); }