summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Filter/TaskDueDateFilter.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/Filter/TaskDueDateFilter.php b/app/Filter/TaskDueDateFilter.php
index 0de055bf..194dd434 100644
--- a/app/Filter/TaskDueDateFilter.php
+++ b/app/Filter/TaskDueDateFilter.php
@@ -32,9 +32,13 @@ class TaskDueDateFilter extends BaseDateFilter implements FilterInterface
*/
public function apply()
{
- $this->query->neq(TaskModel::TABLE.'.date_due', 0);
- $this->query->notNull(TaskModel::TABLE.'.date_due');
- $this->applyDateFilter(TaskModel::TABLE.'.date_due');
+ if ($this->value == "none") {
+ $this->query->eq(TaskModel::TABLE.'.date_due', 0);
+ } else {
+ $this->query->neq(TaskModel::TABLE.'.date_due', 0);
+ $this->query->notNull(TaskModel::TABLE.'.date_due');
+ $this->applyDateFilter(TaskModel::TABLE.'.date_due');
+ }
return $this;
}