Skip to content
Browse files

Merge branch 'MDL-29493_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 585bd02 + 51fd4dd commit 9c43f8f7e10da024c73ac3598563888e5302779a @samhemelryk samhemelryk committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 question/previewlib.php
  2. +1 −1 question/type/edit_question_form.php
View
4 question/previewlib.php
@@ -54,14 +54,14 @@ public function definition() {
$mform->addElement('text', 'maxmark', get_string('markedoutof', 'question'),
array('size' => '5'));
- $mform->setType('maxmark', PARAM_NUMBER);
+ $mform->setType('maxmark', PARAM_FLOAT);
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('maxmark', PARAM_INT);
+ $mform->setType('variant', PARAM_INT);
$mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'),
$hiddenofvisible);
View
2 question/type/edit_question_form.php
@@ -152,7 +152,7 @@ protected function definition() {
$mform->addElement('text', 'defaultmark', get_string('defaultmark', 'question'),
array('size' => 3));
- $mform->setType('defaultmark', PARAM_INT);
+ $mform->setType('defaultmark', PARAM_FLOAT);
$mform->setDefault('defaultmark', 1);
$mform->addRule('defaultmark', null, 'required', null, 'client');

0 comments on commit 9c43f8f

Please sign in to comment.
Something went wrong with that request. Please try again.