mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
do not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot/index.php". This should speed display when courses have many HotPot activities, especially for students
This commit is contained in:
parent
0351730630
commit
42cd7a105b
@ -241,7 +241,7 @@
|
||||
// restrict results to this user only
|
||||
$select .= " AND a.userid='$USER->id'";
|
||||
}
|
||||
$usejoin = 1;
|
||||
$usejoin = 0;
|
||||
if (has_capability('mod/hotpot:grade', get_context_instance(CONTEXT_SYSTEM, SITEID)) && $usejoin) {
|
||||
// join attempts table and details table
|
||||
$tables .= ",{$CFG->prefix}hotpot_details AS d";
|
||||
|
Loading…
x
Reference in New Issue
Block a user