From 10ee52d493dde3e696f6b82eb363e95fccfc4b4c Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 8 Jun 2023 16:18:52 +0530 Subject: [PATCH] check null : ps --- api/application/controllers/Flyhi_Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/application/controllers/Flyhi_Controller.php b/api/application/controllers/Flyhi_Controller.php index 562def5a..a0953ec0 100644 --- a/api/application/controllers/Flyhi_Controller.php +++ b/api/application/controllers/Flyhi_Controller.php @@ -248,7 +248,7 @@ class Flyhi_Controller extends REST_Controller { $lender_id = $this->Flyhi_Model->getEntityFromUserdetails($user_id); $FHFSL_lender = (ENVIRONMENT == 'production' ? 19 : 31); if($lender_id == $FHFSL_lender) $sales_pd_type_master_query = '(CASE WHEN SALES_PD_DATA.sales_pd_type = 3 THEN "Workplace verification" WHEN SALES_PD_DATA.sales_pd_type = 4 THEN "Residence verification" ELSE "-" END) AS sales_pd_type_master'; - else $sales_pd_type_master_query = 'IF(SALES_PD_DATA.sales_pd_type = 5, "-", "-") AS sales_pd_type_master'; + else $sales_pd_type_master_query = 'if(SALES_PD_DATA.sales_pd_type IS NULL ," ", SALES_PD_DATA.sales_pd_type ) AS sales_pd_type_master'; $columns = array('SALES_PD_DATA.sales_pd_id','SALES_PD_DATA.sales_pd_sno','SALES_PD_DATA.applicant_name','concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as officer_name','SALES_PD_DATA.applicant_id','SALES_PD_DATA.lender_id','SALES_PD_DATA.is_pdf','SALES_PD_DATA.is_edited','ENTITY.full_name','ENTITY.short_name','SALES_PD_DATA.status','SALES_PD_DATA.sales_pd_type','SALES_PD_DATA.rand_string','SALES_PD_DATA.isactive','SALES_PD_DATA.city_id','CITY.name as city_name', 'SALES_PD_DATA.lender_sales_person','concat(LENDERSALESPERSON.first_name," ",LENDERSALESPERSON.last_name) as lender_sales_person_name','LENDERSALESPERSON.mobile_no as lender_sales_contact_mobileno','LENDERSALESPERSON.email as lender_sales_person_email',