Skip to content

Commit fddf02e

Browse files
author
David Monllao
committed
Merge branch 'MDL-61129-fix-accessibility-on-tables-mod_survey_Moodle-33' of https://github.com/guillalva06/moodle into MOODLE_33_STABLE
2 parents 9471422 + 77e0eaf commit fddf02e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mod/survey/lib.php

+2-1
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
while (list ($key, $val) = each ($options)) {
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)