Skip to content

Commit

Permalink
Skip update calendar capability check resolves #351
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 5, 2024
1 parent 0d1ebe6 commit 21e163a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/kalvidassign/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 21e163a

Please sign in to comment.