mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01: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
|
@projects = current_user.projects.alphabetize(:state => @state) if @state
|
||||||
@contexts = current_user.contexts
|
@contexts = current_user.contexts
|
||||||
init_not_done_counts(['project'])
|
init_not_done_counts(['project'])
|
||||||
|
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
|
||||||
end
|
end
|
||||||
|
|
||||||
def actionize
|
def actionize
|
||||||
|
|
@ -295,6 +296,7 @@ class ProjectsController < ApplicationController
|
||||||
@projects = current_user.projects.actionize(:state => @state) if @state
|
@projects = current_user.projects.actionize(:state => @state) if @state
|
||||||
@contexts = current_user.contexts
|
@contexts = current_user.contexts
|
||||||
init_not_done_counts(['project'])
|
init_not_done_counts(['project'])
|
||||||
|
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
|
||||||
end
|
end
|
||||||
|
|
||||||
def done_todos
|
def done_todos
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue