Skip to content

Commit

Permalink
Dev: Filter responses text with LIKE
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 21, 2016
1 parent b0e61ac commit 8260bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/SurveyDynamic.php
Expand Up @@ -647,6 +647,7 @@ protected function joinWithToken(CDbCriteria $criteria, CSort $sort)

/**
* Loop through columns and add filter if any value is given for this column
* Used in responses grid
* @param CdbCriteria $criteria
* @return void
*/
Expand Down Expand Up @@ -683,7 +684,7 @@ protected function filterColumns(CDbCriteria $criteria)
}
else
{
$criteria->compare( Yii::app()->db->quoteColumnName($c1), $this->$c1, false);
$criteria->compare( Yii::app()->db->quoteColumnName($c1), $this->$c1, true);
}
}
}
Expand Down

0 comments on commit 8260bd3

Please sign in to comment.