-
Bug
-
Resolution: Fixed
-
Minor
-
2.1, 2.2.2
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
I was using my french keyboard so the , was used for the numbers.
I received the message that the unit was not selected.
This message comes from numerical/question.php
public function get_validation_error(array $response) {
which code reproduces the steps of public function is_complete_response(array $response)
if ($qa->get_state() == question_state::$invalid)
{ $result .= html_writer::nonempty_tag('div', $question->get_validation_error(array('answer' => $currentanswer,'unit' => $selectedunit)), array('class' => 'validationerror')); }
|
solves the problem.