Skip to content

Commit 6f3819a

Browse files
committed
Merge branch 'MDL-65883-37' of git://github.com/lameze/moodle into MOODLE_37_STABLE
2 parents 2641b5e + eecc04f commit 6f3819a

File tree

2 files changed

+154
-242
lines changed

2 files changed

+154
-242
lines changed

mod/quiz/attemptlib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,8 @@ protected function page_and_question_url($script, $slot, $page, $showall, $thisp
21212121
// First question on page, go to top.
21222122
$fragment = '#';
21232123
} else {
2124-
$fragment = '#q' . $slot;
2124+
$qa = $this->get_question_attempt($slot);
2125+
$fragment = '#' . $qa->get_outer_question_div_unique_id();
21252126
}
21262127
}
21272128

0 commit comments

Comments
 (0)