diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 670567d6..8cf19be4 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -65,20 +65,23 @@ class Sales_PD_Controller extends REST_Controller { { if($g_value['question_key'] == 'application_id') { - $applicant_id = $g_value['answer_value']; + $applicant_id = $g_value['answer_value'] ? $g_value['answer_value'] : 'Not Provided'; } - if($g_value['question_key'] == 'person_met_during_visit') - { - $applicant_name = $g_value['answer_value']; - - } if($records['product_id'] == 4) { if($g_value['question_key'] == 'company_name') { $applicant_name = $g_value['answer_value']; } + } + else + { + if($g_value['question_key'] == 'person_met_during_visit') + { + $applicant_name = $g_value['answer_value']; + + } } } diff --git a/api/application/views/sale_pd_templates/MWISE.php b/api/application/views/sale_pd_templates/MWISE.php index eb8ee5d6..6fd74bb9 100644 --- a/api/application/views/sale_pd_templates/MWISE.php +++ b/api/application/views/sale_pd_templates/MWISE.php @@ -427,7 +427,7 @@ if(isset($section6))
| Photograph`s |
|---|
| Photograph`s |
|---|
| '.$photo_names [ $section9[$i]['img_name'] ].' | ';
+ }
- // echo ' '.$photo_names [ $section9[$i]['img_name'] ].' | ';
-
- // //unset($p_key);
- // }
- // echo '