mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
fix #1290. Actionize and alphabetize did not work for hidden projects
This commit is contained in:
parent
5d703975a3
commit
89f96da623
1 changed files with 2 additions and 0 deletions
|
@ -288,6 +288,7 @@ class ProjectsController < ApplicationController
|
|||
@projects = current_user.projects.alphabetize(:state => @state) if @state
|
||||
@contexts = current_user.contexts
|
||||
init_not_done_counts(['project'])
|
||||
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
|
||||
end
|
||||
|
||||
def actionize
|
||||
|
@ -295,6 +296,7 @@ class ProjectsController < ApplicationController
|
|||
@projects = current_user.projects.actionize(:state => @state) if @state
|
||||
@contexts = current_user.contexts
|
||||
init_not_done_counts(['project'])
|
||||
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
|
||||
end
|
||||
|
||||
def done_todos
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue