-
Followers
lrbalt , popsch , voxspox
AttachmentsAssociationsNo associationsActivity
Digging a little more, it seems that "todos.show_from" wasn't cleared. Thus both@not_done = @project.todos.active_or_hidden(:include => Todo::DEFAULT_INCLUDES) @deferred = @project.todos.deferred(:include => Todo::DEFAULT_INCLUDES)
return the same todo.
Tracks would need something at the startup to check all todos, whether any show_from lies in the past and set it to NULL.
todos are activated from deferred state every time you access the home page or the tickler page, see https://github.com/TracksApp/tracks/blob/master/app/controllers/todos_controller.rb#L7 and https://github.com/TracksApp/tracks/blob/master/app/controllers/todos_controller.rb#L864. When the state changes from deferred to active, the show_from should be cleared, see https://github.com/TracksApp/tracks/blob/master/app/models/todo.rb#L60
There is something very wrong in that it shows the same todo twice on the page. I have never seen this. Code-wise this should not be possible.In this case it is caused by show_from not being empty.
The most interesting part is, how did this todo get in this state? Why didn't the exit proc fire on changing state?
Time ExpenditureLoading
This is the xml of the todo: