mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-63456 question: Improve Aiken error handling and multichoice errors
This commit is contained in:
parent
7daf207db7
commit
2d5d5d7902
5 changed files with 144 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue