Changes search by reference to case insentive

Search was being performed case sensitive, changed to case insensitive
This commit is contained in:
rafacamargo123 2019-03-07 09:06:04 -03:00 committed by fguillot
parent 3bf8c29dad
commit cccd020988
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class TaskReferenceFilter extends BaseFilter implements FilterInterface
public function apply()
{
if (strpos($this->value, '*') >= 0) {
$this->query->like(TaskModel::TABLE.'.reference', str_replace('*', '%', $this->value));
$this->query->ilike(TaskModel::TABLE.'.reference', str_replace('*', '%', $this->value));
return $this;
}