Skip to content

Commit

Permalink
Merge branch 'wip-MDL-47796-27' of git://github.com/abgreeve/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_27_STABLE
  • Loading branch information
Damyon Wiese committed Oct 29, 2014
2 parents dad46c5 + 99cf374 commit cdb3a6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/data/view.php
Expand Up @@ -331,8 +331,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
Expand Down

0 comments on commit cdb3a6b

Please sign in to comment.