MDL-63456 question: Improve Aiken error handling and multichoice errors

This commit is contained in:
Eric Merrill 2018-09-25 23:35:37 -04:00
parent 7daf207db7
commit 2d5d5d7902
5 changed files with 144 additions and 5 deletions

View file

@ -60,7 +60,7 @@ class qtype_multichoice extends question_type {
}
}
if ($answercount < 2) { // Check there are at lest 2 answers for multiple choice.
$result->notice = get_string('notenoughanswers', 'qtype_multichoice', '2');
$result->error = get_string('notenoughanswers', 'qtype_multichoice', '2');
return $result;
}