From fe935d6ec1e82bea1fd002ea19b6e2f9647ddc70 Mon Sep 17 00:00:00 2001 From: Kamil Date: Tue, 17 Jul 2018 06:24:28 +0200 Subject: Add search within a range of dates for creation/moved date fields --- app/ServiceProvider/FilterProvider.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/ServiceProvider') diff --git a/app/ServiceProvider/FilterProvider.php b/app/ServiceProvider/FilterProvider.php index 11a29e69..c61d2284 100644 --- a/app/ServiceProvider/FilterProvider.php +++ b/app/ServiceProvider/FilterProvider.php @@ -16,6 +16,7 @@ use Kanboard\Filter\TaskColumnFilter; use Kanboard\Filter\TaskCommentFilter; use Kanboard\Filter\TaskCompletionDateFilter; use Kanboard\Filter\TaskCreationDateFilter; +use Kanboard\Filter\TaskCreationDateRangeFilter; use Kanboard\Filter\TaskCreatorFilter; use Kanboard\Filter\TaskDescriptionFilter; use Kanboard\Filter\TaskDueDateFilter; @@ -24,6 +25,7 @@ use Kanboard\Filter\TaskIdFilter; use Kanboard\Filter\TaskLinkFilter; use Kanboard\Filter\TaskModificationDateFilter; use Kanboard\Filter\TaskMovedDateFilter; +use Kanboard\Filter\TaskMovedDateRangeFilter; use Kanboard\Filter\TaskPriorityFilter; use Kanboard\Filter\TaskProjectFilter; use Kanboard\Filter\TaskReferenceFilter; @@ -148,6 +150,9 @@ class FilterProvider implements ServiceProviderInterface ->withFilter(TaskCreationDateFilter::getInstance() ->setDateParser($c['dateParser']) ) + ->withFilter(TaskCreationDateRangeFilter::getInstance() + ->setDateParser($c['dateParser']) + ) ->withFilter(TaskCreatorFilter::getInstance() ->setCurrentUserId($c['userSession']->getId()) ) @@ -171,6 +176,9 @@ class FilterProvider implements ServiceProviderInterface ->withFilter(TaskMovedDateFilter::getInstance() ->setDateParser($c['dateParser']) ) + ->withFilter(TaskMovedDateRangeFilter::getInstance() + ->setDateParser($c['dateParser']) + ) ->withFilter(new TaskProjectFilter()) ->withFilter(new TaskReferenceFilter()) ->withFilter(new TaskScoreFilter()) -- cgit v1.2.3