mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 20:26:11 +01:00
Fixed #491 (broken: Actions completed in the last 7 days). Thanks for the bug report, SK.
Also, removed some junk from the data_controller test output. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@520 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
8f81f6d58a
commit
c89d8f0012
2 changed files with 1 additions and 2 deletions
|
|
@ -445,7 +445,7 @@ class TodosController < ApplicationController
|
|||
else
|
||||
|
||||
# Exclude hidden projects from count on home page
|
||||
@todos = @user.todos.find(:all, :conditions => ['todos.state = ? or todos.state = ?', 'active', 'complete'], :include => [ :project, :context, :tags ])
|
||||
@todos = @user.todos.find(:all, :conditions => ['todos.state = ? or todos.state = ?', 'active', 'completed'], :include => [ :project, :context, :tags ])
|
||||
|
||||
# Exclude hidden projects from the home page
|
||||
@not_done_todos = @user.todos.find(:all, :conditions => ['todos.state = ?', 'active'], :order => "todos.due IS NULL, todos.due ASC, todos.created_at ASC", :include => [ :project, :context, :tags ])
|
||||
|
|
|
|||
|
|
@ -17,6 +17,5 @@ class DataControllerTest < Test::Unit::TestCase
|
|||
def test_csv_export_completes_without_error
|
||||
@request.session['user_id'] = users(:admin_user).id
|
||||
get :csv_notes
|
||||
puts @response.body
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue