From 5d29614e3e994dade823604c4f99c963f0108890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 5 Feb 2024 17:59:13 +0100 Subject: [PATCH] Skip update calendar capability check resolves#351 --- mod/kalvidassign/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/kalvidassign/lib.php b/mod/kalvidassign/lib.php index bfaf0da1..6334cb8b 100644 --- a/mod/kalvidassign/lib.php +++ b/mod/kalvidassign/lib.php @@ -57,7 +57,7 @@ function kalvidassign_add_instance($kalvidassign) { $event->timestart = $kalvidassign->timedue; $event->timeduration = 0; - calendar_event::create($event); + calendar_event::create($event, false); } kalvidassign_grade_item_update($kalvidassign); @@ -107,7 +107,7 @@ function kalvidassign_update_instance($kalvidassign) { $event->timestart = $kalvidassign->timedue; $event->timeduration = 0; - calendar_event::create($event); + calendar_event::create($event, false); } } else { $DB->delete_records('event', array('modulename' => 'kalvidassign', 'instance' => $kalvidassign->id));