MDL-65029 questions: change question div id to acutally be unique

This is largely based on Simey Lameze's work.
This commit is contained in:
Tim Hunt
2019-03-29 13:37:44 +00:00
parent 0920f35ed9
commit f1ffd134d3
6 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class core_question_renderer extends plugin_renderer_base {
$output = '';
$output .= html_writer::start_tag('div', array(
'id' => 'q' . $qa->get_slot(),
'id' => $qa->get_outer_question_div_unique_id(),
'class' => implode(' ', array(
'que',
$qa->get_question()->qtype->name(),