Skip to content
Browse files

MDL-28282 Scorm Restorting Groups support in Scorm reports

  • Loading branch information...
1 parent 01f7f6f commit 9d7ce57ae34ad6dd3e0d0b4f19ed77c6a1b043b3 @ankitagarwal ankitagarwal committed Dec 5, 2011
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
View
2 mod/scorm/report/basic/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'));
View
4 mod/scorm/report/interactions/report.php
@@ -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 9d7ce57

Please sign in to comment.
Something went wrong with that request. Please try again.