Permalink
Browse files

Merge branch 'MDL-28282-m22' of git://github.com/ankitagarwal/moodle …

…into MOODLE_22_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Dec 7, 2011
2 parents 7f96df6 + 9d7ce57 commit b1d4c42ad698b45700b2cc6e1d830b91d3913b6f
Showing with 5 additions and 1 deletion.
  1. +2 −0 mod/scorm/report/basic/report.php
  2. +3 −1 mod/scorm/report/interactions/report.php
@@ -43,6 +43,8 @@ function display($scorm, $cm, $course, $download) {
echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
}
}
+ // find out current groups mode
+ $currentgroup = groups_get_activity_group($cm, true);
// detailed report
$mform = new mod_scorm_report_settings($PAGE->url, compact('currentgroup'));
@@ -45,6 +45,8 @@ function display($scorm, $cm, $course, $download) {
echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
}
}
+ // find out current groups mode
+ $currentgroup = groups_get_activity_group($cm, true);
// detailed report
$mform = new mod_scorm_report_interactions_settings($PAGE->url, compact('currentgroup'));
@@ -107,7 +109,7 @@ function display($scorm, $cm, $course, $download) {
$nostudents = true;
$groupstudents = array();
}
- $allowedlist = ($groupstudents);
+ $allowedlist = array_keys($groupstudents);
}
if ( !$nostudents ) {
// Now check if asked download of data

0 comments on commit b1d4c42

Please sign in to comment.