mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
MDL-13812 choice options not shown when limit enabled.
This commit is contained in:
parent
05866d85d4
commit
a5f35b9f5b
@ -140,7 +140,7 @@ function choice_show_form($choice, $user, $cm, $allresponses) {
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
||||
foreach ($choice->option as $optionid => $text) {
|
||||
if (isset($text) && isset($allresponses[$optionid])) { //make sure there are no dud entries in the db with blank text values.
|
||||
if (isset($text)) { //make sure there are no dud entries in the db with blank text values.
|
||||
$cdisplay[$aid]->optionid = $optionid;
|
||||
$cdisplay[$aid]->text = $text;
|
||||
$cdisplay[$aid]->maxanswers = $choice->maxanswers[$optionid];
|
||||
|
Loading…
x
Reference in New Issue
Block a user