mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Multichoice defaults to a single answer
This commit is contained in:
parent
ead6351e85
commit
b85806454b
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@
|
||||||
if (!empty($question->id)) {
|
if (!empty($question->id)) {
|
||||||
$options = get_record("quiz_multichoice", "question", $question->id);
|
$options = get_record("quiz_multichoice", "question", $question->id);
|
||||||
} else {
|
} else {
|
||||||
$options->single = "";
|
$options->single = 1;
|
||||||
}
|
}
|
||||||
if (!empty($options->answers)) {
|
if (!empty($options->answers)) {
|
||||||
$answersraw = get_records_list("quiz_answers", "id", $options->answers);
|
$answersraw = get_records_list("quiz_answers", "id", $options->answers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue