mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
Merge branch 'wip-mdl-40919' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
03b8d9e3c3
12 changed files with 552 additions and 8 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue