From cccd020988fbc0e7a3c53e0c1a3a2a1d342b2775 Mon Sep 17 00:00:00 2001 From: rafacamargo123 Date: Thu, 7 Mar 2019 09:06:04 -0300 Subject: Changes search by reference to case insentive Search was being performed case sensitive, changed to case insensitive --- app/Filter/TaskReferenceFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Filter') diff --git a/app/Filter/TaskReferenceFilter.php b/app/Filter/TaskReferenceFilter.php index d843b777..2fe6f8a6 100644 --- a/app/Filter/TaskReferenceFilter.php +++ b/app/Filter/TaskReferenceFilter.php @@ -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; } -- cgit v1.2.3