From 0813a1cac9b769c680d896228b7d1d7093e59bd3 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 26 Apr 2021 07:06:31 +0000 Subject: [PATCH] online Commit for PHOTO Status : ps --- api/application/models/PD_Model.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) {