mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 20:38:48 +01:00
fix show_from not being clear when a todo comes from tickler
This commit is contained in:
parent
6e654c5d03
commit
cb46a8461e
3 changed files with 47 additions and 12 deletions
|
|
@ -73,7 +73,7 @@ class Todo < ActiveRecord::Base
|
|||
state :active
|
||||
state :project_hidden
|
||||
state :completed, :before_enter => Proc.new { |t| t.completed_at = Time.zone.now }, :before_exit => Proc.new { |t| t.completed_at = nil}
|
||||
state :deferred, :after_exit => Proc.new { |t| t[:show_from] = nil }
|
||||
state :deferred, :before_exit => Proc.new { |t| t[:show_from] = nil }
|
||||
state :pending
|
||||
|
||||
event :defer do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue