diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 66b74e0f..56066c73 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -1015,10 +1015,9 @@ class ClientController extends AdminController ] ], 'short_name' => [ - 'rules' => 'required|alpha', + 'rules' => 'required', 'errors' => [ 'required' => 'Client Short Name is required', - 'alpha' => 'Client Short Name can only contain alphabets.', ] ], 'pan' => [ diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index 8154fc82..c8413098 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -437,7 +437,7 @@ class LeadsController extends BaseController ]; $request_data = $this->request->getPost(); $data = sanitizeInputArrayAdvanced($request_data); - if($data['lead_form_type'] == 2){ + if (isset($data['lead_form_type']) && (int)$data['lead_form_type'] === 2) { $rules['client_type'] = [ 'rules' => 'required', 'errors' => ['required' => 'Client Type is required'] diff --git a/app/Controllers/NotificationController.php b/app/Controllers/NotificationController.php index 0d85df18..b0e5b4cf 100755 --- a/app/Controllers/NotificationController.php +++ b/app/Controllers/NotificationController.php @@ -52,6 +52,7 @@ class NotificationController extends AdminController // Create Or Update the Notification public function createNotification() { + $form_data['template_name'] = $this->camelCaseToSnakeCase($this->request->getPost('template_name')); $form_data['subject'] = $this->request->getPost('subject'); $form_data['mail_content'] = $this->request->getPost('mailContent'); diff --git a/app/Views/leads_form.php b/app/Views/leads_form.php index 364a2da4..ede380ea 100644 --- a/app/Views/leads_form.php +++ b/app/Views/leads_form.php @@ -2156,10 +2156,9 @@ $('.btnDiv').show(); $('.claim-row').hide(); - - $('.emp_title').text('No of Employees') - $('.depnd_title').text('No of Dependents') - $('.total_title').text('Total Lives') + $('.emp_title_text').text('No of Employees') + $('.depnd_title_text').text('No of Dependents') + $('.total_title_text').text('Total Lives') $('.renewalFields').find('select, input').removeAttr('required'); $('.renewalFields').hide(); @@ -2193,9 +2192,9 @@ $('.btnDiv').hide(); $('.claim-row').show(); - $('.emp_title').text('No of Employees at Inception') - $('.depnd_title').text(' No of Dependents at Inception') - $('.total_title').text('Total Lives at Inception') + $('.emp_title_text').text('No of Employees at Inception') + $('.depnd_title_text').text(' No of Dependents at Inception') + $('.total_title_text').text('Total Lives at Inception') $('.freshFields').find('select, input').removeAttr('required'); $('.freshFields').hide(); diff --git a/app/Views/leads_non_eb.php b/app/Views/leads_non_eb.php index 2f59fe29..ebdf741b 100644 --- a/app/Views/leads_non_eb.php +++ b/app/Views/leads_non_eb.php @@ -738,9 +738,9 @@ $('.claim-row').hide(); - $('.emp_title').text('No of Employees') - $('.depnd_title').text('No of Dependents') - $('.total_title').text('Total Lives') + $('.emp_title_text').text('No of Employees') + $('.depnd_title_text').text('No of Dependents') + $('.total_title_text').text('Total Lives') $('.renewalFields').find('select, input').removeAttr('required'); $('.renewalFields').hide(); @@ -775,9 +775,9 @@ $('.btnDiv').hide(); $('.claim-row').show(); - $('.emp_title').text('No of Employees at Inception') - $('.depnd_title').text(' No of Dependents at Inception') - $('.total_title').text('Total Lives at Inception') + $('.emp_title_text').text('No of Employees at Inception') + $('.depnd_title_text').text(' No of Dependents at Inception') + $('.total_title_text').text('Total Lives at Inception') $('.freshFields').find('select, input').removeAttr('required'); $('.freshFields').hide(); @@ -812,7 +812,6 @@ } } - } var allContacts = ""; function getBranchData(input,inputType) { diff --git a/app/Views/notification.php b/app/Views/notification.php index 5248c2bf..635ca440 100755 --- a/app/Views/notification.php +++ b/app/Views/notification.php @@ -1524,7 +1524,7 @@
-
-
- +
- +
- +
diff --git a/app/Views/rfq/gpa.php b/app/Views/rfq/gpa.php index a9c74b6f..344d4b04 100644 --- a/app/Views/rfq/gpa.php +++ b/app/Views/rfq/gpa.php @@ -3,12 +3,16 @@
- +
- +