diff options
author | Rafael de Camargo <rafaelcamargo@trt15.jus.br> | 2019-05-14 02:34:53 -0300 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2019-05-13 22:34:52 -0700 |
commit | d5f6317608376bf55351185a76bb3d8817af1e2d (patch) | |
tree | 477f5d51545a0e5b7644e1c3b894c41a5a30faf1 /app/ServiceProvider/FilterProvider.php | |
parent | 702379a55093aa62bae7dcd49a657397a21fd6b5 (diff) |
Do not show duplicated results when multiple comments match
Diffstat (limited to 'app/ServiceProvider/FilterProvider.php')
-rw-r--r-- | app/ServiceProvider/FilterProvider.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/ServiceProvider/FilterProvider.php b/app/ServiceProvider/FilterProvider.php index 392c6c92..5f90e400 100644 --- a/app/ServiceProvider/FilterProvider.php +++ b/app/ServiceProvider/FilterProvider.php @@ -148,7 +148,9 @@ class FilterProvider implements ServiceProviderInterface ) ->withFilter(new TaskPriorityFilter()) ->withFilter(new TaskColumnFilter()) - ->withFilter(new TaskCommentFilter()) + ->withFilter(TaskCommentFilter::getInstance() + ->setDatabase($c['db']) + ) ->withFilter(TaskCreationDateFilter::getInstance() ->setDateParser($c['dateParser']) ) @@ -186,7 +188,7 @@ class FilterProvider implements ServiceProviderInterface ) ->withFilter(TaskMovedDateRangeFilter::getInstance() ->setDateParser($c['dateParser']) - ) + ) ->withFilter(new TaskProjectFilter()) ->withFilter(new TaskReferenceFilter()) ->withFilter(new TaskScoreFilter()) |