MDL-54935 Survey: Remove duplicate event trigger

This commit is contained in:
Stephen Bourget 2016-06-15 17:09:17 -04:00
parent a0a63678a9
commit 77971021ff

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");