Skip to content

Commit

Permalink
Fixed issue #8285: Exporting statistics with "Show text responses inl…
Browse files Browse the repository at this point in the history
…ine" enabled is showing inclomplete answers also
  • Loading branch information
c-schmitz committed Oct 23, 2013
1 parent 721bd50 commit e98c8a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -3305,6 +3305,10 @@ function _listcolumn($surveyid, $column, $sortby="", $sortmethod="", $sorttype="
$search['condition']="CAST(".Yii::app()->db->quoteColumnName($column)." as varchar) != ''";
}

//filter incomplete answers if set
if (incompleteAnsFilterState() == "incomplete") {$search['condition'] .= " AND submitdate is null";}
elseif (incompleteAnsFilterState() == "complete") {$search['condition'] .= " AND submitdate is not null";}

//Look for any selects/filters set in the original statistics query, and apply them to the column listing
if (isset(Yii::app()->session['statistics_selects_'.$surveyid]) && is_array(Yii::app()->session['statistics_selects_'.$surveyid]))
{
Expand Down

0 comments on commit e98c8a4

Please sign in to comment.