MDL-40063/MDL-45057 quiz: disable firing of override events

This hacky solution is brought to you by the the motivation to
release.
This commit is contained in:
Dan Poltawski 2014-04-11 16:55:59 +08:00
parent 34f7e31ffb
commit c5e5f1b786

View file

@ -204,6 +204,7 @@ function quiz_delete_override($quiz, $overrideid) {
$DB->delete_records('quiz_overrides', array('id' => $overrideid));
/* TODO MDL-45057 - Restore this event firing.
// Set the common parameters for one of the events we will be triggering.
$params = array(
'objectid' => $override->id,
@ -224,6 +225,7 @@ function quiz_delete_override($quiz, $overrideid) {
// Trigger the override deleted event.
$event->add_record_snapshot('quiz_overrides', $override);
$event->trigger();
*/
return true;
}