Skip to content

Commit

Permalink
Fixed issue #7202: Response rate shows as 100% for all surveys
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 22, 2013
1 parent 8dcf305 commit dad6df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Tokens_dynamic.php
Expand Up @@ -229,7 +229,7 @@ public static function countAllAndCompleted($sid)
$select = array(
'count(*) AS cntAll',
'sum(CASE '. Yii::app()->db->quoteColumnName('completed') . '
WHEN '.Yii::app()->db->quoteValue('Y').' THEN 0
WHEN '.Yii::app()->db->quoteValue('N').' THEN 0
ELSE 1
END) AS cntCompleted',
);
Expand Down

0 comments on commit dad6df5

Please sign in to comment.