We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

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 !
handle nil correctly in last patch
lrbalt (author)
Tue Aug 19 05:47:51 -0700 2008
commit  b076ae46f8146f67ab84fe0bbe3bd1c7dd153a94
tree    1c1858945fde511001d5fddac88dd233c68b398a
parent  065f543a83657a555523e59cdfc1cbd44de0bd2b
...
170
171
172
173
 
 
 
 
 
174
175
176
...
170
171
172
 
173
174
175
176
177
178
179
180
0
@@ -170,7 +170,11 @@ class ApplicationController < ActionController::Base
0
     todo.due = rt.get_due_date(date)
0
     # make sure that show_from is not in the past
0
     show_from_date = rt.get_show_from_date(date)
0
- todo.show_from = show_from_date < Time.now.utc ? nil : show_from_date
0
+ if show_from_date.nil?
0
+ todo.show_from=nil
0
+ else
0
+ todo.show_from = show_from_date < Time.now.utc ? nil : show_from_date
0
+ end
0
     
0
     saved = todo.save
0
     if saved

Comments

    No one has commented yet.