mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-15 21:55:29 +01:00
updates previous patch as discussed on mailing list. Thanks Walter Cruz
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@806 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
fc4fc43fee
commit
e11837a111
1 changed files with 0 additions and 1 deletions
|
|
@ -448,7 +448,6 @@ class TodosController < ApplicationController
|
|||
@down_count = Todo.count(
|
||||
:all,
|
||||
:conditions => ['todos.user_id = ? and todos.state = ? and contexts.hide = ? AND (projects.state = ? OR todos.project_id IS NULL)', current_user.id, 'active', false, 'active'],
|
||||
:group => "todos.id",
|
||||
:include => [ :project, :context ])
|
||||
# #@down_count = Todo.count_by_sql(['SELECT COUNT(*) FROM todos,
|
||||
# contexts WHERE todos.context_id = contexts.id and todos.user_id = ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue