Skip to content

Commit fd91aab

Browse files
author
David Monllao
committed
Merge branch 'MDL-61129-fix-accessibility-on-tables-mod_survey_MASTER' of https://github.com/guillalva06/moodle
2 parents 0d900be + f1dd1cb commit fd91aab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mod/survey/lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,15 @@ function survey_print_multi($question) {
537537
$P = "";
538538
}
539539

540+
echo "<colgroup colspan=\"7\"></colgroup>";
540541
echo "<tr class=\"smalltext\"><th scope=\"row\">$strresponses</th>";
541542
echo "<th scope=\"col\" class=\"hresponse\">". get_string('notyetanswered', 'survey'). "</th>";
542543
foreach ($options as $key => $val) {
543544
echo "<th scope=\"col\" class=\"hresponse\">$val</th>\n";
544545
}
545546
echo "</tr>\n";
546547

547-
echo "<tr><th scope=\"col\" colspan=\"7\">$question->intro</th></tr>\n";
548+
echo "<tr><th scope=\"colgroup\" colspan=\"7\">$question->intro</th></tr>\n";
548549

549550
$subquestions = survey_get_subquestions($question);
550551

0 commit comments

Comments
 (0)