From a7627dfd65fa2a55a7e85d4d8d2639985b546647 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Fri, 5 Dec 2025 15:41:42 +0530 Subject: [PATCH] FIX_When Save Attachments fix --- app/Controllers/NotificationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/NotificationController.php b/app/Controllers/NotificationController.php index e288a7a0..cc13b100 100755 --- a/app/Controllers/NotificationController.php +++ b/app/Controllers/NotificationController.php @@ -375,7 +375,7 @@ class NotificationController extends AdminController // Insert file attachment record if ($this->MailAttachmentModel->insert($data)) { // Retrieve active attachments to return in response - $attachment_data = $this->MailAttachmentModel->where('is_active', 1)->findAll(); + $attachment_data = $this->MailAttachmentModel->where('notification_id', $find_notification['id'])->where('is_active', 1)->findAll()??[]; return $this->respond([ 'status' => true, 'code' => 200,