diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index 087ba757..156a6536 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -1251,9 +1251,18 @@ class PD_Model extends SPARQ_Model { else if($value['pd_form_level_order'] == 2){$level_two_total++;} } //make photo section always answerable true + //if($value['form_id'] == 26) + //{ + // $template_forms[$template_key]['isAnswered'] = true; + //} if($value['form_id'] == 26) { - $template_forms[$template_key]['isAnswered'] = true; + if(is_array($over_all_photocount) && count($over_all_photocount) > 1){ + $template_forms[$template_key]['isAnswered'] = true; + }else{ + $template_forms[$template_key]['isAnswered'] = false; + } + } if($value['pd_form_level_order'] == 1) {