FIX_MAIL_CONTENT_GETTING

This commit is contained in:
VENKATESHWARAN 2026-06-30 14:43:14 +05:30
parent 035ed31e43
commit ba7aaba736

View File

@ -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)) {