FIX_When Save Attachments fix

This commit is contained in:
sanjeev.p 2025-12-05 15:41:42 +05:30
parent 2809e0bd3d
commit a7627dfd65

View File

@ -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,