From 9c0a572c56b3f61c63ed6b9ea035a14428951df2 Mon Sep 17 00:00:00 2001 From: bsag Date: Sat, 24 Feb 2007 10:50:21 +0000 Subject: [PATCH] Clicking the 'Done' button in the nav bar no longer results in a 500 error. Fixes #456 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@458 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/controllers/todos_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tracks/app/controllers/todos_controller.rb b/tracks/app/controllers/todos_controller.rb index fde674cf..e900b3bb 100644 --- a/tracks/app/controllers/todos_controller.rb +++ b/tracks/app/controllers/todos_controller.rb @@ -213,15 +213,15 @@ class TodosController < ApplicationController def completed @page_title = "TRACKS::Completed tasks" @done = @user.completed_todos - @done_today = @done.completed_within user_time - 1.day - @done_this_week = @done.completed_within user_time - 1.week - @done_this_month = @done.completed_within user_time - 4.week + @done_today = @done.completed_within @user.time - 1.day + @done_this_week = @done.completed_within @user.time - 1.week + @done_this_month = @done.completed_within @user.time - 4.week end def completed_archive @page_title = "TRACKS::Archived completed tasks" @done = @user.completed_todos - @done_archive = @done.completed_more_than user_time - 28.days + @done_archive = @done.completed_more_than @user.time - 28.days end def list_deferred