MDL-28517 question editing fixed duplicate id in hint header field
authorColin Chambers <c.chambers@open.ac.uk>
Fri, 29 Jul 2011 13:23:01 +0000 (14:23 +0100)
committerColin Chambers <c.chambers@open.ac.uk>
Thu, 4 Aug 2011 13:49:31 +0000 (14:49 +0100)
question/type/edit_question_form.php

index b08e7fb..757099b 100644 (file)
@@ -355,7 +355,7 @@ abstract class question_edit_form extends moodleform {
         $mform = $this->_form;
 
         $repeated = array();
-        $repeated[] = $mform->createElement('header', 'answerhdr', get_string('hintn', 'question'));
+        $repeated[] = $mform->createElement('header', 'hinthdr', get_string('hintn', 'question'));
         $repeated[] = $mform->createElement('editor', 'hint', get_string('hinttext', 'question'),
                 array('rows' => 5), $this->editoroptions);
         $repeatedoptions['hint']['type'] = PARAM_RAW;