This commit is contained in:
Damyon Wiese 2014-02-25 12:44:35 +08:00
commit 03b8d9e3c3
12 changed files with 552 additions and 8 deletions

View file

@ -92,8 +92,6 @@
$strseemoredetail = get_string("seemoredetail", "survey");
$strnotes = get_string("notes", "survey");
add_to_log($course->id, "survey", "view report", "report.php?id=$cm->id", "$survey->id", $cm->id);
switch ($action) {
case 'download':
$PAGE->navbar->add(get_string('downloadresults', 'survey'));
@ -131,6 +129,16 @@
$currentgroup = 0;
}
$params = array(
'objectid' => $survey->id,
'context' => $context,
'courseid' => $course->id,
'relateduserid' => $student,
'other' => array('action' => $action, 'groupid' => $currentgroup)
);
$event = \mod_survey\event\report_viewed::create($params);
$event->trigger();
if ($currentgroup) {
$users = get_users_by_capability($context, 'mod/survey:participate', '', '', '', '', $currentgroup, null, false);
} else if (!empty($cm->groupingid)) {