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();