MDL-54935 Survey: Remove duplicate event trigger

This commit is contained in:
Stephen Bourget
2016-06-23 03:01:30 +00:00
committed by Ryan Wyllie
parent 364329af40
commit d4f446f9a8
-8
View File
@@ -68,14 +68,6 @@
survey_save_answers($survey, $formdata, $course, $context);
$params = array(
'context' => $context,
'courseid' => $course->id,
'other' => array('surveyid' => $survey->id)
);
$event = \mod_survey\event\response_submitted::create($params);
$event->trigger();
// Print the page and finish up.
notice(get_string("thanksforanswers","survey", $USER->firstname), "$CFG->wwwroot/course/view.php?id=$course->id");