From d5f6317608376bf55351185a76bb3d8817af1e2d Mon Sep 17 00:00:00 2001 From: Rafael de Camargo Date: Tue, 14 May 2019 02:34:53 -0300 Subject: Do not show duplicated results when multiple comments match --- app/ServiceProvider/FilterProvider.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/ServiceProvider/FilterProvider.php') 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()) -- cgit v1.2.3