Permalink
Browse files

MDL-12282 - Numerical question type - the units are displayed on the …

…editing form with a stupidly large number of decimal places.
  • Loading branch information...
1 parent 80d7317 commit 3b37251a8ae586ec3cb7057e77a385cb97a9d782 tjhunt committed Nov 20, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/numerical/edit_numerical_form.php
@@ -57,7 +57,7 @@ function definition_inner(&$mform) {
$mform->setType('unit', PARAM_NOTAGS);
$repeated[] =& $mform->createElement('text', 'multiplier', get_string('multiplier', 'quiz'));
- $mform->setType('multiplier', PARAM_NOTAGS);
+ $mform->setType('multiplier', PARAM_NUMBER);
if (isset($this->question->options)){
$countunits = count($this->question->options->units);

0 comments on commit 3b37251

Please sign in to comment.