From 529765daa5d5b7673a274496a76cba216eddacc1 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Sat, 29 Aug 2015 17:09:26 +0200 Subject: [PATCH] Fixed issue : quota to 0 without response are always true (mut be invalid) Dev: Control number of members before testing --- application/helpers/frontend_helper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/helpers/frontend_helper.php b/application/helpers/frontend_helper.php index 6cfa0c17ddc..52c5bcae195 100644 --- a/application/helpers/frontend_helper.php +++ b/application/helpers/frontend_helper.php @@ -1926,6 +1926,8 @@ function checkCompletedQuota($surveyid,$return=false) $aPostedFields = explode("|",Yii::app()->request->getPost('fieldnames','')); // Needed for quota allowing update foreach ($aQuotasInfo as $aQuotaInfo) { + if(count($aQuotaInfo['members'])===0)) + continue; $iMatchedAnswers=0; $bPostedField=false; // Array of field with quota array value