mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 17:14:20 +01:00
Merge pull request #1808 from C-Otto/blocked_projects
Projects with completed actions may be blocked
This commit is contained in:
commit
5bf60bb0e6
2 changed files with 4 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ class Project < ActiveRecord::Base
|
|||
## mutually exclusive for stalled and blocked
|
||||
# blocked is uncompleted project with deferred or pending todos, but no next actions
|
||||
return false if self.completed?
|
||||
return !self.todos.deferred_or_blocked.empty? && self.todos.not_deferred_or_blocked.empty?
|
||||
return !self.todos.deferred_or_blocked.empty? && self.todos.active.empty?
|
||||
end
|
||||
|
||||
def stalled?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue