mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
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
This commit is contained in:
parent
4f9cd61619
commit
9c0a572c56
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue