summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-14 19:02:25 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-14 19:02:25 +0000
commitcdfc57d5442f72d62437f52af480049c943ecbf8 (patch)
tree576cbf92e5bdeec589544476cc83de216adda120 /app/controllers/timelog_controller.rb
parent8900797adaf29adc447925b800d5457ca941795f (diff)
downloadredmine-cdfc57d5442f72d62437f52af480049c943ecbf8.tar.gz
redmine-cdfc57d5442f72d62437f52af480049c943ecbf8.zip
Change the TimelogController's to/from dates based on the project time entries
Instead of looking for the earliest and latest time entry system wide for the dates in the form, now TimelogController will only look at the time entries for the current project (and parent/sub projects). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4087 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 726c69d5b..45f41ae5e 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -260,8 +260,8 @@ private
end
@from, @to = @to, @from if @from && @to && @from > @to
- @from ||= (TimeEntry.earilest_date_for_project || Date.today) - 1
- @to ||= (TimeEntry.latest_date_for_project || Date.today)
+ @from ||= (TimeEntry.earilest_date_for_project(@project) || Date.today)
+ @to ||= (TimeEntry.latest_date_for_project(@project) || Date.today)
end
def load_available_criterias