From 1b632830bc87b3ec0e4007e6161706f0ad4e96f5 Mon Sep 17 00:00:00 2001 From: bsag Date: Wed, 30 Mar 2005 18:56:29 +0000 Subject: [PATCH] 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 --- tracks/app/controllers/todo_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracks/app/controllers/todo_controller.rb b/tracks/app/controllers/todo_controller.rb index 281506bd..1a063916 100644 --- a/tracks/app/controllers/todo_controller.rb +++ b/tracks/app/controllers/todo_controller.rb @@ -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