Permalink
Browse files

MDL-38490 question preview, variant is attempt (not display) option

  • Loading branch information...
1 parent 2e4d9a0 commit 2443f3d21d657d63e7dc2d5be3f10a0b05e68718 @timhunt timhunt committed Mar 14, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 question/previewlib.php
View
10 question/previewlib.php
@@ -56,18 +56,18 @@ public function definition() {
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'),
array_combine($variants, $variants));
}
$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);

0 comments on commit 2443f3d

Please sign in to comment.