From d0a58fe0356eb9bf6783299cbf7e00ec4eab1b30 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 29 Nov 2016 18:31:53 +0000 Subject: [PATCH] MDL-57199 question preview: make HTML ids unique --- question/previewlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/previewlib.php b/question/previewlib.php index 00c8d2394a5..bd92049122a 100644 --- a/question/previewlib.php +++ b/question/previewlib.php @@ -44,7 +44,7 @@ class preview_options_form extends moodleform { question_display_options::VISIBLE => get_string('shown', 'question'), ); - $mform->addElement('header', 'optionsheader', get_string('attemptoptions', 'question')); + $mform->addElement('header', 'attemptoptionsheader', get_string('attemptoptions', 'question')); $behaviours = question_engine::get_behaviour_options( $this->_customdata['quba']->get_preferred_behaviour()); @@ -66,7 +66,7 @@ class preview_options_form extends moodleform { $mform->addElement('submit', 'saverestart', get_string('restartwiththeseoptions', 'question')); - $mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question')); + $mform->addElement('header', 'displayoptionsheader', get_string('displayoptions', 'question')); $mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'), $hiddenofvisible);