summaryrefslogtreecommitdiff
path: root/app/Filter/TaskSwimlaneFilter.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-10-02 11:34:00 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-10-02 11:34:00 -0700
commit5cce000f9560d52a7f2444f9f8b46c2a9e7750cf (patch)
tree8b88f1bb4424021fec77d9cc8d0ef5de6be634eb /app/Filter/TaskSwimlaneFilter.php
parent4a58cbc917192ddad681c438302f55dd2b7d7382 (diff)
Make swimlane filter compatible with numeric title
Fixes #3940
Diffstat (limited to 'app/Filter/TaskSwimlaneFilter.php')
-rw-r--r--app/Filter/TaskSwimlaneFilter.php9
1 files changed, 1 insertions, 8 deletions
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;
}
}