Skip to content

Commit

Permalink
Exercise: log exercise deletion - refs BT#21185
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Nov 3, 2023
1 parent b4fa0d0 commit 5d25614
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/exercise/exercise.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,11 @@ public function delete(bool $delete = false, bool $deleteQuestions = false): boo
WHERE iid = ".$this->iid;
Database::query($sql);
}
Event::addEvent(
LOG_EXERCISE_DELETE,
LOG_EXERCISE_ID,
$this->iid
);

return true;
}
Expand Down

0 comments on commit 5d25614

Please sign in to comment.