Add a logger notice when calendar is canceled

This commit is contained in:
2025-01-13 16:16:49 +01:00
parent 20b82ddbfc
commit b421e0b0af

View File

@@ -187,6 +187,11 @@ class CalendarController extends AbstractController
if ($form->isSubmitted() && $form->isValid()) {
$this->logger->notice('A calendar event has been cancelled', [
'by_user' => $this->getUser()->getUsername(),
'calendar_id' => $calendar->getId(),
]);
$calendar->setStatus($calendar::STATUS_CANCELED);
$calendar->setSmsStatus($calendar::SMS_CANCEL_PENDING);
$this->em->flush();