mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #57 - Calendar entry not removed on uninstall.
This commit is contained in:
@@ -96,9 +96,9 @@ class calendar {
|
||||
'courseid' => 1,
|
||||
'groupid' => 0,
|
||||
'userid' => 0,
|
||||
'modulename' => '',
|
||||
'modulename' => 'auth_outage',
|
||||
'instance' => $outage->id,
|
||||
'eventtype' => 'auth_outage',
|
||||
'eventtype' => 'outage',
|
||||
'timestart' => $outage->starttime,
|
||||
'visible' => true,
|
||||
'timeduration' => $outage->get_duration_planned(),
|
||||
@@ -115,7 +115,7 @@ class calendar {
|
||||
|
||||
$event = $DB->get_record_select(
|
||||
'event',
|
||||
"(eventtype = 'auth_outage' AND instance = :outageid)",
|
||||
"(modulename='auth_outage' AND eventtype='outage' AND instance = :outageid)",
|
||||
['outageid' => $outageid],
|
||||
'id',
|
||||
IGNORE_MISSING
|
||||
|
||||
Reference in New Issue
Block a user