public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
fix corner case for repeating todos without due date
lrbalt (author)
Fri Aug 29 01:05:14 -0700 2008
commit  18815769bb78ebf80b6e1996b2c68abadd5d8e4f
tree    678833ecae8fef9b72389d55dd8808ba7e5ad6c9
parent  abdac8855d5d17eaa63f877cca53fc6df83f5e35
...
689
690
691
 
692
693
694
...
689
690
691
692
693
694
695
0
@@ -689,6 +689,7 @@ class TodosController < ApplicationController
0
     if @todo.from_recurring_todo?
0
       @recurring_todo = current_user.recurring_todos.find(@todo.recurring_todo_id)
0
       date_to_check = @todo.due.nil? ? @todo.show_from : @todo.due
0
+      date_to_check = Date.today()-1.day if date_to_check.nil?
0
       if @recurring_todo.active? && @recurring_todo.has_next_todo(date_to_check)
0
         date = date_to_check >= Date.today() ? date_to_check : Date.today()-1.day
0
         @new_recurring_todo = create_todo_from_recurring_todo(@recurring_todo, date) 

Comments