MERGE_LIVE_BUG_FIXES

This commit is contained in:
Ubuntu 2026-06-30 17:51:50 +05:30
commit 08211c2c33

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