diff options
author | Kamil <k.sciana@gmail.com> | 2018-07-19 21:22:21 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-07-19 12:22:21 -0700 |
commit | 03a22132e430adc43845da9a6b5f2dacbeafd311 (patch) | |
tree | ed8da48670f0997e0c18c1f191e779d8f2de66aa /app/ServiceProvider | |
parent | fe935d6ec1e82bea1fd002ea19b6e2f9647ddc70 (diff) |
Add search within a range of dates for completion and modification
Diffstat (limited to 'app/ServiceProvider')
-rw-r--r-- | app/ServiceProvider/FilterProvider.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/ServiceProvider/FilterProvider.php b/app/ServiceProvider/FilterProvider.php index c61d2284..392c6c92 100644 --- a/app/ServiceProvider/FilterProvider.php +++ b/app/ServiceProvider/FilterProvider.php @@ -15,6 +15,7 @@ use Kanboard\Filter\TaskColorFilter; use Kanboard\Filter\TaskColumnFilter; use Kanboard\Filter\TaskCommentFilter; use Kanboard\Filter\TaskCompletionDateFilter; +use Kanboard\Filter\TaskCompletionDateRangeFilter; use Kanboard\Filter\TaskCreationDateFilter; use Kanboard\Filter\TaskCreationDateRangeFilter; use Kanboard\Filter\TaskCreatorFilter; @@ -24,6 +25,7 @@ use Kanboard\Filter\TaskStartDateFilter; use Kanboard\Filter\TaskIdFilter; use Kanboard\Filter\TaskLinkFilter; use Kanboard\Filter\TaskModificationDateFilter; +use Kanboard\Filter\TaskModificationDateRangeFilter; use Kanboard\Filter\TaskMovedDateFilter; use Kanboard\Filter\TaskMovedDateRangeFilter; use Kanboard\Filter\TaskPriorityFilter; @@ -166,6 +168,9 @@ class FilterProvider implements ServiceProviderInterface ->withFilter(TaskCompletionDateFilter::getInstance() ->setDateparser($c['dateParser']) ) + ->withFilter(TaskCompletionDateRangeFilter::getInstance() + ->setDateparser($c['dateParser']) + ) ->withFilter(new TaskIdFilter()) ->withFilter(TaskLinkFilter::getInstance() ->setDatabase($c['db']) @@ -173,6 +178,9 @@ class FilterProvider implements ServiceProviderInterface ->withFilter(TaskModificationDateFilter::getInstance() ->setDateParser($c['dateParser']) ) + ->withFilter(TaskModificationDateRangeFilter::getInstance() + ->setDateParser($c['dateParser']) + ) ->withFilter(TaskMovedDateFilter::getInstance() ->setDateParser($c['dateParser']) ) |