summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-26 12:20:17 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-26 12:20:17 -0500
commit2b27d986b374923a266c132ac0a67fb515d30d1c (patch)
treeac44ce507889598a192c3eccd0b3552942e10c57 /app
parentfbfaaa69b11df1836a671167b6d16baadef53cd6 (diff)
Use PicoDb operator ilike() instead of like()
Diffstat (limited to 'app')
-rw-r--r--app/Model/TaskPaginator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/TaskPaginator.php b/app/Model/TaskPaginator.php
index 4ae3566c..bf537fbe 100644
--- a/app/Model/TaskPaginator.php
+++ b/app/Model/TaskPaginator.php
@@ -26,7 +26,7 @@ class TaskPaginator extends Base
{
return $this->taskFinder->getQuery()
->eq('project_id', $project_id)
- ->like('title', '%'.$search.'%')
+ ->ilike('title', '%'.$search.'%')
->offset($offset)
->limit($limit)
->orderBy($column, $direction)
@@ -45,7 +45,7 @@ class TaskPaginator extends Base
{
return $this->db->table(Task::TABLE)
->eq('project_id', $project_id)
- ->like('title', '%'.$search.'%')
+ ->ilike('title', '%'.$search.'%')
->count();
}