Sales_PD_Controller.php image split : ps

This commit is contained in:
gandhimathi 2022-05-09 06:29:15 +00:00
parent 2b6dd121bf
commit 67b9742872

View File

@ -220,8 +220,10 @@ class Sales_PD_Controller extends REST_Controller {
if(count($view_data['section9'])>0){
for ($i = 0; $i < count($view_data['section9']); $i++){
$img_fields[0]['img_name'] = $view_data['section9'][$i]['img_name'];
$img_fields[0]['img'] = $view_data['section9'][$i]['img'];
salespd_cetapp::pushwithcetsalespdapi($common_fields,$img_fields,2);
$img_split = explode( ',', $view_data['section9'][$i]['img']);
$img_fields[0]['img'] = $img_split[1];
// $img_fields[0]['img'] = $view_data['section9'][$i]['img'];
salespd_cetapp::pushwithcetsalespdapi($common_fields,$img_fields,2);
}
// "section9":{"selfie_with_person_met":"SAVED","approach_to_pd_location":["SAVED",""],"name_board_seen":["SAVED",""],"stock_image":["SAVED","SAVED","SAVED","SAVED",""],"workplace_interior_image":["SAVED","SAVED",""]}}
// $arr1 =array();$arr2 =array();