I *think* I've fixed the problem with hidden contexts not getting hidden. Lolindrath suggested putting quotes around the arguments to find_all_by_hide, and says that it fixed it for him. Should fix ticket:13.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@55 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-03-30 18:56:29 +00:00
parent ec69c71564
commit 1b632830bc

View file

@ -20,8 +20,8 @@ class TodoController < ApplicationController
@page_title = "TRACKS::List tasks"
@projects = Project.find_all
@places = Context.find_all
@shown_places = Context.find_all_by_hide( 0, "position ASC")
@hidden_places = Context.find_all_by_hide( 1, "position ASC" )
@shown_places = Context.find_all_by_hide( "0", "position ASC")
@hidden_places = Context.find_all_by_hide( "1", "position ASC" )
@done = Todo.find_all_by_done( 1, "completed DESC", 5 )
# Set count badge to number of not-done, not hidden context items