From 0ea12fb177d95c9d76ba088054ad6fe5720b7485 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Thu, 29 Jan 2026 16:12:07 +0530 Subject: [PATCH 1/2] FIX_Lead Noneb R missing and Client toaster due H&F --- app/Controllers/ClientController.php | 3 +-- app/Controllers/LeadsController.php | 2 +- app/Views/leads_form.php | 13 ++++++------- app/Views/leads_non_eb.php | 13 ++++++------- app/Views/rfq/gmc.php | 18 ++++++++++++------ app/Views/rfq/gpa.php | 8 ++++++-- 6 files changed, 32 insertions(+), 25 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 1fe2264f..49f05145 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/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/rfq/gmc.php b/app/Views/rfq/gmc.php index 0f5bb4d0..4dd3e6d1 100644 --- a/app/Views/rfq/gmc.php +++ b/app/Views/rfq/gmc.php @@ -131,22 +131,28 @@
- +
- +
- +
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 @@
- +
- +
From b84d8d82d76c6396dc1803be1137a566760ecc4d Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Thu, 29 Jan 2026 17:27:25 +0530 Subject: [PATCH 2/2] Fix_clientnotificationvalidation --- app/Controllers/NotificationController.php | 1 + app/Views/notification.php | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) 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/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 @@
-
-