From 2443f3d21d657d63e7dc2d5be3f10a0b05e68718 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 14 Mar 2013 17:21:16 +0000 Subject: [PATCH] MDL-38490 question preview, variant is attempt (not display) option --- question/previewlib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/question/previewlib.php b/question/previewlib.php index 2daa9cd927d..c4aa54f6dd9 100644 --- a/question/previewlib.php +++ b/question/previewlib.php @@ -56,11 +56,6 @@ class preview_options_form extends moodleform { array('size' => '5')); $mform->setType('maxmark', PARAM_FLOAT); - $mform->addElement('submit', 'saverestart', - get_string('restartwiththeseoptions', 'question')); - - $mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question')); - if ($this->_customdata['maxvariant'] > 1) { $variants = range(1, $this->_customdata['maxvariant']); $mform->addElement('select', 'variant', get_string('questionvariant', 'question'), @@ -68,6 +63,11 @@ class preview_options_form extends moodleform { } $mform->setType('variant', PARAM_INT); + $mform->addElement('submit', 'saverestart', + get_string('restartwiththeseoptions', 'question')); + + $mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question')); + $mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'), $hiddenofvisible);