summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry_query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-10-15 11:42:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-10-15 11:42:00 +0000
commit0a3e85b92d175ab57f08725e40cb8fa00dae44ce (patch)
tree6632c948a5417903b2e89fd471fe09772eedc465 /app/models/time_entry_query.rb
parent738bb449efb5ce199a6b3a32d8b4d7de29c6d51b (diff)
downloadredmine-0a3e85b92d175ab57f08725e40cb8fa00dae44ce.tar.gz
redmine-0a3e85b92d175ab57f08725e40cb8fa00dae44ce.zip
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
Diffstat (limited to 'app/models/time_entry_query.rb')
-rw-r--r--app/models/time_entry_query.rb3
1 files changed, 1 insertions, 2 deletions
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