Skip to content

Commit

Permalink
Fixed issue : quota to 0 without response are always true (mut be inv…
Browse files Browse the repository at this point in the history
…alid)

Dev: Control number of members before testing
  • Loading branch information
Shnoulle committed Aug 29, 2015
1 parent 93f50c2 commit 529765d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/frontend_helper.php
Expand Up @@ -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
Expand Down

0 comments on commit 529765d

Please sign in to comment.