mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Only change sms status upon cancellation if sendSMS is true
This commit is contained in:
parent
8336a93aeb
commit
55c7dbf44e
@ -142,7 +142,9 @@ class CalendarController extends AbstractController
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
|
||||
$calendar->setStatus($calendar::STATUS_CANCELED);
|
||||
$calendar->setSmsStatus($calendar::SMS_CANCEL_PENDING);
|
||||
if ($calendar->getSendSMS()) {
|
||||
$calendar->setSmsStatus($calendar::SMS_CANCEL_PENDING);
|
||||
}
|
||||
$this->em->flush();
|
||||
|
||||
$this->addFlash('success', $this->translator->trans('chill_calendar.calendar_canceled'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user