mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-30 20:55:17 +01:00
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:
parent
ec69c71564
commit
1b632830bc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue