Skip to content
Browse files

Merge branch 'MDL-32358_21' of https://github.com/ppichet/moodle into…

… MOODLE_21_STABLE
  • Loading branch information...
2 parents 4b8da40 + 8886f0a commit dd9841f926189a819c95821fc1ac9e33be1daaf7 @danpoltawski danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/numerical/renderer.php
View
2 question/type/numerical/renderer.php
@@ -126,7 +126,7 @@ public function formulation_and_controls(question_attempt $qa,
if ($qa->get_state() == question_state::$invalid) {
$result .= html_writer::nonempty_tag('div',
- $question->get_validation_error(array('answer' => $currentanswer)),
+ $question->get_validation_error(array('answer' => $currentanswer, 'unit' => $selectedunit)),
array('class' => 'validationerror'));
}

0 comments on commit dd9841f

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