mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
34f7e31ffb
commit
c5e5f1b786
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue