diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index da59f796..0a3d4f6f 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -8675,17 +8675,11 @@ class PD_Controller extends REST_Controller if ($pd_master_details[0]['customer_segment_abbr'] == 'SAL') { $this->photo_names['attendance_seen_pic'] = array('Attendance Img', '13'); } - if ($pd_master_details[0]['fk_pd_type'] == '4') { - $this->photo_names['video'] = array('Video', '34','0','0'); - }else if ($pd_master_details[0]['fk_pd_type'] != '4') { - $this->photo_names['video'] = array('Video', '24','0','0'); - } // print_r($this->photo_names);die(); $final_data = array(); $common_images = array(); - //print_r(($this->existing_imges));die(); if (count($this->existing_imges)) { foreach ($this->photo_names as $key => $value) { $temp = $this->photoMapping($key, $value); @@ -8749,6 +8743,9 @@ class PD_Controller extends REST_Controller } } } + else if($value['image_key'] == 'video'){ + $final_data[] = array('img_key' => $value['image_key'], 'img_name' => $value['pd_document_title'], 'img_url' => $value['doc_url'], 'fk_form_id' => $value['fk_form_id'], 'pd_document_id' => $value['pd_document_id'], 'pd_image_alias_name' => $value['pd_image_alias_name'], 'is_name_editable' => $value['is_name_editable']); + } } //print_r(($this->existing_imges));die(); //add remaining docs_to_be_collected into final array