Skip to content

Commit

Permalink
Fixed issue #9031: get_summary does not return correct completed_resp…
Browse files Browse the repository at this point in the history
…onses (patch by ravindrakhokharia)
  • Loading branch information
c-schmitz committed Sep 11, 2014
1 parent 0636970 commit 14f9e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -558,7 +558,7 @@ public function get_summary($sSessionKey,$iSurveyID, $sStatName)
{
if (tableExists('{{survey_' . $iSurveyID . '}}'))
{
$aSummary['completed_responses']=SurveyDynamic::model($iSurveyID)->countByAttributes(array('submitdate' => null));
$aSummary['completed_responses']=SurveyDynamic::model($iSurveyID)->count('submitdate is NOT NULL');
$aSummary['incomplete_responses']=SurveyDynamic::model($iSurveyID)->countByAttributes(array('submitdate' => null));
$aSummary['full_responses']=SurveyDynamic::model($iSurveyID)->count();
}
Expand Down

0 comments on commit 14f9e7d

Please sign in to comment.