Commit aa4ebbe5 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

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

parents db277985 c9340ac1
......@@ -126,7 +126,7 @@ class qtype_numerical_renderer extends qtype_renderer {
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'));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment