From ba7aaba7362f1c4737a8f684254314a3a4ea5e45 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Tue, 30 Jun 2026 14:43:14 +0530 Subject: [PATCH] FIX_MAIL_CONTENT_GETTING --- app/Controllers/EmployeeRestController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 1d55d9f..3b128af 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -4709,7 +4709,7 @@ class EmployeeRestController extends AdminController $config = $this->reminderMailConfigModel->getByClientPolicyId((int) $clientPolicyId); if ($is_email_template) { - if (empty($config)) { + if (empty($config) || empty($config['email_subject'] ?? null) || empty($config['email_body'] ?? null)) { $notification = $this->notificationModel->where('client_id', $clientPolicy['client_id'])->where('template_name', 'member_reminder_mail')->first(); if (empty($notification)) {