CUS LINK 4

This commit is contained in:
Velz2020 2020-03-30 10:38:20 +05:30
parent 308da22a61
commit a3367d4ee1

View File

@ -9519,13 +9519,13 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
{ {
$img_array['image'] = $records['image']; $img_array['image'] = $records['image'];
$img_array['Name'] = $records['name']; $img_array['Name'] = $records['name'];
$current_doc_title = $records['name']; $current_doc_title = $records['image_key'];
} }
else else
{ {
$img_array['image'] = $records['image']; $img_array['image'] = $records['image'];
$img_array['Name'] = $records['name']; $img_array['Name'] = $records['image_key'];
$current_doc_title = $records['name']; $current_doc_title = $records['image_key'];
} }
//echo $current_doc_title;die(); //echo $current_doc_title;die();
@ -9632,17 +9632,21 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
$final_data = array(); $final_data = array();
$common_images = array(); $common_images = array();
//print_r(($this->existing_imges));die(); // print_r(($this->existing_imges));//die();
if(count($this->existing_imges)) if(count($this->existing_imges))
{ {
foreach ($this->photo_names as $key => $value) foreach ($this->photo_names as $key => $value)
{ {
$temp = $this->photoMapping($key,$value); $temp = $this->photoMapping($key,$value);
$final_data[] = is_array($temp) ? $temp : array('img_key' =>$key,'img_name' => $value[0],'img_url' => '','fk_form_id' => $value[1]);; $final_data[] = is_array($temp) ? $temp : array('img_key' =>$key,'img_name' => $value[0],'img_url' => '','fk_form_id' => $value[1]);
//unset($this->photo_names[$key]);
foreach ($this->existing_imges as $key => $value)
{
if(!$value['fk_form_id'] && ($value['pd_document_title'] != 'satellite'))
{
$final_data[] = array('img_key' =>'common_image','img_name' => $value['pd_document_title'],'img_url' => $value['doc_url'],'fk_form_id' => null);
}
}
} }
} }
else else