summaryrefslogtreecommitdiff
path: root/app/Filter
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-10-09 20:50:26 -0400
committerFrederic Guillot <fred@kanboard.net>2016-10-09 20:50:26 -0400
commit9eefe6a35835c763c8447621fa63c3b8147b06b8 (patch)
tree13bdce5f5d721baebb42249119516324cf136434 /app/Filter
parent71ad04cd66531aa29d8859d7115ec47acf8b89c3 (diff)
Improve task status filter
Diffstat (limited to 'app/Filter')
-rw-r--r--app/Filter/TaskStatusFilter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Filter/TaskStatusFilter.php b/app/Filter/TaskStatusFilter.php
index a55532cb..791ebce6 100644
--- a/app/Filter/TaskStatusFilter.php
+++ b/app/Filter/TaskStatusFilter.php
@@ -34,7 +34,7 @@ class TaskStatusFilter extends BaseFilter implements FilterInterface
{
if ($this->value === 'open' || $this->value === 'closed') {
$this->query->eq(TaskModel::TABLE.'.is_active', $this->value === 'open' ? TaskModel::STATUS_OPEN : TaskModel::STATUS_CLOSED);
- } else {
+ } elseif (is_int($this->value) || ctype_digit($this->value)) {
$this->query->eq(TaskModel::TABLE.'.is_active', $this->value);
}