diff --git a/api/application/controllers/Flyhi_Controller.php b/api/application/controllers/Flyhi_Controller.php index 3f47335f..466865f0 100644 --- a/api/application/controllers/Flyhi_Controller.php +++ b/api/application/controllers/Flyhi_Controller.php @@ -739,7 +739,7 @@ class Flyhi_Controller extends REST_Controller { } if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited']) - // if(1) + //if(1) { $all_section_data = $this->Flyhi_Model->selectCustomRecords(array('*'),array('sales_pd_id' => $pd_id,'isactive' => 1),SALESPD_SECTION_DATA,array(),'','section_id','ASC'); @@ -762,13 +762,13 @@ class Flyhi_Controller extends REST_Controller { $view_data['geo_location'] = $flyhipd_data[0]['geo_location']; $satellite_image = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS); - if(!empty($satellite_image)){ // checking Entity Available or not + // if(!empty($satellite_image)){ // checking Entity Available or $bucket_name = LENDER_BUCKET_NAME_PREFIX.$flyhipd_data[0]['lender_id']; $bucket_key = "sales_pd/".$flyhipd_data[0]['sales_pd_id']."/images/satellite.png"; $singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $bucket_key,'30 minutes'); $img_url = 'data:image/gif;base64,'.$singed_uri; $view_data['satellite_image'] = $img_url; - }else{ $view_data['satellite_image'] = ""; } + // }else{ $view_data['satellite_image'] = ""; } // $view_data['satellite_image'] = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS); // die(); //$view_name = $flyhipd_data[0]['short_name'].'_'.$flyhipd_data[0]['abbr'];