diff options
Diffstat (limited to 'app/models/time_entry_query.rb')
-rw-r--r-- | app/models/time_entry_query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb index ee15699f4..43fdc8625 100644 --- a/app/models/time_entry_query.rb +++ b/app/models/time_entry_query.rb @@ -191,7 +191,7 @@ class TimeEntryQuery < Query end # Accepts :from/:to params as shortcut filters - def build_from_params(params) + def build_from_params(params, defaults={}) super if params[:from].present? && params[:to].present? add_filter('spent_on', '><', [params[:from], params[:to]]) |