summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMark Szymanski <markjszy@gmail.com>2017-01-24 22:44:29 -0600
committerMark Szymanski <markjszy@gmail.com>2017-01-24 22:45:16 -0600
commite986b948e324e29855369d1aaa34a458f8402ace (patch)
tree2bfa3b79e870e5558e338e457c0367ca77d583ea /app
parent80321a9298ca239430de5c67317dd46f443bc513 (diff)
Provide support for completion filter in search (fixes #2958)
Diffstat (limited to 'app')
-rw-r--r--app/ServiceProvider/FilterProvider.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/ServiceProvider/FilterProvider.php b/app/ServiceProvider/FilterProvider.php
index 1684592b..1cc4da8a 100644
--- a/app/ServiceProvider/FilterProvider.php
+++ b/app/ServiceProvider/FilterProvider.php
@@ -14,6 +14,7 @@ use Kanboard\Filter\TaskCategoryFilter;
use Kanboard\Filter\TaskColorFilter;
use Kanboard\Filter\TaskColumnFilter;
use Kanboard\Filter\TaskCommentFilter;
+use Kanboard\Filter\TaskCompletionDateFilter;
use Kanboard\Filter\TaskCreationDateFilter;
use Kanboard\Filter\TaskCreatorFilter;
use Kanboard\Filter\TaskDescriptionFilter;
@@ -156,6 +157,9 @@ class FilterProvider implements ServiceProviderInterface
->withFilter(TaskStartDateFilter::getInstance()
->setDateParser($c['dateParser'])
)
+ ->withFilter(TaskCompletionDateFilter::getInstance()
+ ->setDateparser($c['dateParser'])
+ )
->withFilter(new TaskIdFilter())
->withFilter(TaskLinkFilter::getInstance()
->setDatabase($c['db'])