mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-28282 Scorm Restorting Groups support in Scorm reports
This commit is contained in:
parent
01f7f6f9aa
commit
9d7ce57ae3
2 changed files with 5 additions and 1 deletions
|
@ -43,6 +43,8 @@ class scorm_basic_report extends scorm_default_report {
|
|||
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 @@ class scorm_interactions_report extends scorm_default_report {
|
|||
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 @@ class scorm_interactions_report extends scorm_default_report {
|
|||
$nostudents = true;
|
||||
$groupstudents = array();
|
||||
}
|
||||
$allowedlist = ($groupstudents);
|
||||
$allowedlist = array_keys($groupstudents);
|
||||
}
|
||||
if ( !$nostudents ) {
|
||||
// Now check if asked download of data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue