mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-28259 Individual answers Feedback not shown in Cloze questions
This commit is contained in:
parent
9cfaebbd0e
commit
bca8065844
@ -132,6 +132,10 @@ abstract class qtype_multianswer_subq_renderer_base extends qtype_renderer {
|
||||
$feedback[] = $state->default_string(true);
|
||||
}
|
||||
|
||||
if ($feedbacktext) { // Note $options->feedback is already checked above.
|
||||
$feedback[] = $feedbacktext;
|
||||
}
|
||||
|
||||
if ($options->rightanswer) {
|
||||
$feedback[] = get_string('correctansweris', 'qtype_shortanswer', $rightanswer);
|
||||
}
|
||||
@ -144,6 +148,10 @@ abstract class qtype_multianswer_subq_renderer_base extends qtype_renderer {
|
||||
$feedback[] = get_string('markoutofmax', 'question', $a);
|
||||
}
|
||||
|
||||
if (!$feedback) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return html_writer::tag('span', implode('<br />', $feedback),
|
||||
array('class' => 'feedbackspan accesshide'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user