From b0680f9a1cd14005529c73e400bd5c88b461b3d3 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Mon, 5 Nov 2012 23:13:03 +0100 Subject: [PATCH] Fixed issue #6831: Exception when attempting to view individual survey result on MSSQL --- application/models/Survey_dynamic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Survey_dynamic.php b/application/models/Survey_dynamic.php index 20f6012078b..ca1ab3f9aab 100644 --- a/application/models/Survey_dynamic.php +++ b/application/models/Survey_dynamic.php @@ -282,7 +282,7 @@ public function previous($srid,$usefilterstate=false) elseif ($usefilterstate && incompleteAnsFilterState() == 'complete') $wherefilterstate='submitdate IS NOT NULL'; else - $wherefilterstate='true'; + $wherefilterstate='1=1'; if(Yii::app()->db->schema->getTable($this->tableName())){ $data=Yii::app()->db->createCommand()