From 0a3e85b92d175ab57f08725e40cb8fa00dae44ce Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Oct 2017 11:42:00 +0000 Subject: Filtering time entries after issue's target version doesn't work as expected in some cases (#26667). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16997 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/time_entry_query.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/time_entry_query.rb') diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb index fcd433b08..f146a34da 100644 --- a/app/models/time_entry_query.rb +++ b/app/models/time_entry_query.rb @@ -36,8 +36,7 @@ class TimeEntryQuery < Query def initialize(attributes=nil, *args) super attributes - self.filters ||= {} - add_filter('spent_on', '*') unless filters.present? + self.filters ||= { 'spent_on' => {:operator => "*", :values => []} } end def initialize_available_filters -- cgit v1.2.3