From 10509933486ab651c4a185efc37a6340d503f47b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 4 Dec 2011 23:01:42 +0000 Subject: Removed unnecessary calculations in time entries index. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8085 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/timelog_controller.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/controllers/timelog_controller.rb') diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 719e0b864..d50c3d0de 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -320,8 +320,6 @@ private end @from, @to = @to, @from if @from && @to && @from > @to - @from ||= (TimeEntry.earilest_date_for_project(@project) || Date.today) - @to ||= (TimeEntry.latest_date_for_project(@project) || Date.today) end def parse_params_for_bulk_time_entry_attributes(params) -- cgit v1.2.3