From 69864db213ac5f50eb3fdbca1ac1855d9f18e6c8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 1 Aug 2023 12:56:45 +1000 Subject: [PATCH] When deleting a system, removed the mailer details also --- app/Http/Controllers/SystemController.php | 1 + resources/views/system/view.blade.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Http/Controllers/SystemController.php b/app/Http/Controllers/SystemController.php index 59641be..6223400 100644 --- a/app/Http/Controllers/SystemController.php +++ b/app/Http/Controllers/SystemController.php @@ -545,6 +545,7 @@ class SystemController extends Controller if (Arr::get($validated,'remove')) { $so->sessions()->detach($o->zone); + $so->mailers()->detach(); $so->delete(); } elseif (Arr::get($validated,'remsess')) { diff --git a/resources/views/system/view.blade.php b/resources/views/system/view.blade.php index 07c5c61..3e727be 100644 --- a/resources/views/system/view.blade.php +++ b/resources/views/system/view.blade.php @@ -66,6 +66,7 @@ + Echoarea Activity