Project: moodle
Issue MDL-40919: Replace add_to_log with an event trigger - mod_survey
Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class. *mod_survey* /mod/survey/report.php:95: add_to_log($course->id, "survey", "view report", "report.php?id=$cm->id", "$survey->id", $cm->id); /mod/survey/index.php:17: add_to_log($course->id, "survey", "view all", "index.php?id=$course->id", ""); /mod/survey/save.php:57: add_to_log($course->id, "survey", "submit", "view.php?id=$cm->id", "$survey->id", "$cm->id"); /mod/survey/view.php:99: add_to_log($course->id, "survey", "view graph", "view.php?id=$cm->id", $survey->id, $cm->id); /mod/survey/view.php:136: add_to_log($course->id, "survey", "view form", "view.php?id=$cm->id", $survey->id, $cm->id); /mod/survey/download.php:54:add_to_log($course->id, "survey", "download", $PAGE->url->out(), "$survey->id", $cm->id);
Story points: 20