summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-28 18:57:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-28 18:57:25 -0400
commit7af5a923b047f612c02af2fe39a09beb45792f3a (patch)
tree860452d85ee3dbf9298b9307719c31d2965696e8 /app
parente22985df50d3a0a2ac883c43749542e41e425927 (diff)
Improve date due filter
Diffstat (limited to 'app')
-rw-r--r--app/Model/TaskFilter.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php
index 4f306b14..c47b059f 100644
--- a/app/Model/TaskFilter.php
+++ b/app/Model/TaskFilter.php
@@ -321,6 +321,8 @@ class TaskFilter extends Base
*/
public function filterByDueDate($date)
{
+ $this->query->neq('date_due', 0);
+ $this->query->notNull('date_due');
return $this->filterWithOperator('date_due', $date, true);
}