From 2f2e7489105a079a7d128d34f6fd5abe379b0472 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 11 Jul 2024 17:58:21 +0200 Subject: [PATCH] Sending email to customer after Cancel --- application/Contract/ContractController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/Contract/ContractController.php b/application/Contract/ContractController.php index 37b772fe9..5470fbd3d 100644 --- a/application/Contract/ContractController.php +++ b/application/Contract/ContractController.php @@ -216,16 +216,14 @@ class ContractController extends mfBaseController } } - - - + $contract->sendCancelNotification($linked_contracts); $this->layout()->setFlash("Kündigung gespeichert", "success"); $this->redirect("Contract", "view", ["contract_id" => $contract->id]); } - protected function sendCancelNotification() { + /*protected function sendCancelNotification() { $contract_id = $this->request->contract_id; $contract = new Contract($contract_id); @@ -246,7 +244,7 @@ class ContractController extends mfBaseController $this->redirect("Contract", "view", ["contract_id" => $contract_id]); - } + }*/ protected function productchangeAction() {