MERGE_UAT_BUG_FIXES
This commit is contained in:
commit
ebeff19d75
@ -4709,6 +4709,9 @@ class EmployeeRestController extends AdminController
|
||||
$config = $this->reminderMailConfigModel->getByClientPolicyId((int) $clientPolicyId);
|
||||
|
||||
if ($is_email_template) {
|
||||
|
||||
$placeHolders = ['member_name', 'nhance_logo', 'client_logo', 'policy_no', 'app_link', 'client_name', 'enrollment_open_date', 'enrollment_close_date'];
|
||||
|
||||
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();
|
||||
@ -4725,7 +4728,7 @@ class EmployeeRestController extends AdminController
|
||||
return $this->respond([
|
||||
'status' => true,
|
||||
'code' => 200,
|
||||
'data' => ['email_subject' => $config['email_subject'], 'email_body' => $config['email_body']],
|
||||
'data' => ['email_subject' => $config['email_subject'], 'email_body' => $config['email_body'], 'place_holders' => $placeHolders],
|
||||
], 200);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user