mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-13303 fixing missing group icons in forum; merged from MOODLE_19_STABLE
This commit is contained in:
parent
fd4d41c3b5
commit
75d46e24ab
@ -4313,12 +4313,12 @@ function forum_print_discussion($course, $cm, $forum, $discussion, $post, $mode,
|
||||
}
|
||||
|
||||
// preload all groups of ppl that posted in this discussion
|
||||
if ($postersgroups = groups_get_all_groups($course->id, $posters, $cm->groupingid, 'g.id, gm.userid')) {
|
||||
if ($postersgroups = groups_get_all_groups($course->id, $posters, $cm->groupingid, 'gm.id, gm.groupid, gm.userid')) {
|
||||
foreach($postersgroups as $pg) {
|
||||
if (!isset($cm->cache->usersgroups[$pg->userid])) {
|
||||
$cm->cache->usersgroups[$pg->userid] = array();
|
||||
}
|
||||
$cm->cache->usersgroups[$pg->userid][$pg->id] = $pg->id;
|
||||
$cm->cache->usersgroups[$pg->userid][$pg->groupid] = $pg->groupid;
|
||||
}
|
||||
unset($postersgroups);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user