From 2dee0dc63e4028ad7407f6234811e6c7f951551a Mon Sep 17 00:00:00 2001 From: velz Date: Wed, 5 Nov 2025 09:35:26 +0530 Subject: [PATCH] FIX_LEAD_LIST_500_ERROR --- app/Controllers/LeadsController.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index 3ead1911..92fa8a52 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -344,10 +344,15 @@ class LeadsController extends BaseController $where = []; foreach ($search_data as $search_objects => $key) { if ($key != null && $key != '' && $key != 0 && $search_objects != 'is_dashboard') { - $where[$search_objects] = $key; + if($search_objects == 'status') + { + $where[('leads.'.$search_objects)] = $key; + }else{ + $where[$search_objects] = $key; + } } } - + // !dd($where); $data['lead_data_list'] = $this->leadsModel->getLeadDataForLising($where); $html = view('leads_list', $data);