From 5cce000f9560d52a7f2444f9f8b46c2a9e7750cf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 2 Oct 2018 11:34:00 -0700 Subject: Make swimlane filter compatible with numeric title Fixes #3940 --- app/Filter/TaskSwimlaneFilter.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'app/Filter/TaskSwimlaneFilter.php') diff --git a/app/Filter/TaskSwimlaneFilter.php b/app/Filter/TaskSwimlaneFilter.php index 1afc6d48..a339ec86 100644 --- a/app/Filter/TaskSwimlaneFilter.php +++ b/app/Filter/TaskSwimlaneFilter.php @@ -34,14 +34,7 @@ class TaskSwimlaneFilter extends BaseFilter implements FilterInterface */ public function apply() { - if (is_int($this->value) || ctype_digit($this->value)) { - $this->query->eq(TaskModel::TABLE.'.swimlane_id', $this->value); - } else { - $this->query->beginOr(); - $this->query->ilike(SwimlaneModel::TABLE.'.name', $this->value); - $this->query->closeOr(); - } - + $this->query->ilike(SwimlaneModel::TABLE.'.name', $this->value); return $this; } } -- cgit v1.2.3