Permalink
Browse files

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

This hacky solution is brought to you by the the motivation to
release.
  • Loading branch information...
danpoltawski committed Apr 11, 2014
1 parent 34f7e31 commit c5e5f1b786a499f7b59dfb361aca65dc1460507b
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/quiz/lib.php
View
@@ -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;
}

0 comments on commit c5e5f1b

Please sign in to comment.