MDL-47796 mod_data: Fix display of group records.

When viewing entries as a teacher in separate group
mode, changing the group would result in random
entries being shown.
This commit is contained in:
Adrian Greeve
2014-10-29 14:11:38 +08:00
parent 481667d333
commit 32b5098b68
+3 -2
View File
@@ -324,8 +324,9 @@
echo $OUTPUT->header();
/// Check to see if groups are being used here
$currentgroup = groups_get_activity_group($cm);
// Check to see if groups are being used here.
// We need the most up to date current group value. Make sure it is updated at this point.
$currentgroup = groups_get_activity_group($cm, true);
$groupmode = groups_get_activity_groupmode($cm);
$canmanageentries = has_capability('mod/data:manageentries', $context);
// If a student is not part of a group and seperate groups is enabled, we don't