From f860cdd486cfbbca4cc801ec09d10472439cb349 Mon Sep 17 00:00:00 2001 From: Sanjeev Date: Mon, 5 Jul 2021 20:23:56 +0530 Subject: [PATCH] loadCreditPDTemplate fixes : ps --- api/application/controllers/PD_Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 6cb25982..2d6d61fb 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -10738,8 +10738,8 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() $where_condition_array = array('isactive' => 1); - if($this->post('fk_entity_id')){ $where_condition_array['fk_entity_id'] = $this->post('fk_entity_id'); } - if($this->post('fk_product_id')){ $where_condition_array['fk_product_id'] = $this->post('fk_product_id'); } + if($this->post('fk_entity_id')){ $where_condition_array['fk_entity_id'] = $this->post('fk_entity_id'); }else{ $where_condition_array['fk_entity_id'] = NULL; } + if($this->post('fk_product_id')){ $where_condition_array['fk_product_id'] = $this->post('fk_product_id'); }else{ $where_condition_array['fk_product_id'] = NULL; } if($this->post('pd_form_id')){ $where_condition_array['pd_form_id'] = $this->post('pd_form_id'); } $fk_pd_id = $this->post('fk_pd_id'); //print_r($where_condition_array);die();