Merge branch 'MDL-78621-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE

This commit is contained in:
Ilya Tregubov
2024-02-07 08:57:04 +08:00
+4 -1
View File
@@ -186,7 +186,10 @@ class mod_choice_renderer extends plugin_renderer_base {
} else if ($optionid > 0) {
$headertitle = format_string($choices->options[$optionid]->text);
if (!empty($choices->options[$optionid]->user) && count($choices->options[$optionid]->user) > 0) {
if ((count($choices->options[$optionid]->user)) == ($choices->options[$optionid]->maxanswer)) {
if (
$choices->limitanswers &&
(count($choices->options[$optionid]->user) == $choices->options[$optionid]->maxanswer)
) {
$headertitle .= ' ' . get_string('full', 'choice');
}
}