summaryrefslogtreecommitdiff
path: root/app/Filter
diff options
context:
space:
mode:
authorrafacamargo123 <rafacamargo123@gmail.com>2019-03-07 09:06:04 -0300
committerfguillot <fred@kanboard.net>2019-03-07 22:13:39 -0800
commitcccd020988fbc0e7a3c53e0c1a3a2a1d342b2775 (patch)
treeb7fa33c8639bd7a36f881305bc03184b760d6c7b /app/Filter
parent3bf8c29dad9a115e904e876edf5c5fdf4f8c8141 (diff)
Changes search by reference to case insentive
Search was being performed case sensitive, changed to case insensitive
Diffstat (limited to 'app/Filter')
-rw-r--r--app/Filter/TaskReferenceFilter.php2
1 files changed, 1 insertions, 1 deletions
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;
}