summaryrefslogtreecommitdiff
path: root/app/Filter
diff options
context:
space:
mode:
Diffstat (limited to 'app/Filter')
-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;
}
}