Skip to content

Commit

Permalink
Fixed issue #7328: Quotas can not be viewed / processed in an active …
Browse files Browse the repository at this point in the history
…poll
  • Loading branch information
c-schmitz committed Mar 2, 2013
1 parent 27111ad commit 12875b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/helpers/common_helper.php
Expand Up @@ -4744,7 +4744,9 @@ function getQuotaCompletedCount($iSurveyId, $quotaid)

if (!in_array($fieldname, $fields_list)) $fields_list[] = $fieldname;

$criteria->addColumnCondition(array($fieldname => $member), 'OR');
// Yii does not quote column names (duh!) so we have to do it.
$criteria->addColumnCondition(array(Yii::app()->db->quoteColumnName($fieldname) => $member['value']), 'OR');
}

$fields_query[$fieldname] = $criteria;
}
Expand Down

0 comments on commit 12875b7

Please sign in to comment.