Skip to content

Commit

Permalink
Fixed issue #6932: Clicking browse on text entries returns no results…
Browse files Browse the repository at this point in the history
… in statistics screen in MSSQL
  • Loading branch information
c-schmitz committed Nov 25, 2012
1 parent 6900470 commit 7f41c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/statistics.php
Expand Up @@ -494,7 +494,7 @@ public function run($surveyid = 0, $subaction = null)
* */
function listcolumn($surveyid, $column, $sortby="", $sortmethod="", $sorttype="")
{
$search['condition']=$column." != ''";
$search['condition']=Yii::app()->db->quoteColumnName($column)." != ''";
//Look for any selects/filters set in the original statistics query, and apply them to the column listing
foreach(Yii::app()->session['statistics_selects_'.$surveyid] as $sql) {
$search['condition'] .= " AND $sql";
Expand Down

0 comments on commit 7f41c5d

Please sign in to comment.