<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -170,7 +170,11 @@ class ApplicationController &lt; ActionController::Base
     todo.due = rt.get_due_date(date)
     # make sure that show_from is not in the past
     show_from_date = rt.get_show_from_date(date)
-    todo.show_from = show_from_date &lt; Time.now.utc ? nil : show_from_date
+    if show_from_date.nil?
+      todo.show_from=nil
+    else
+      todo.show_from = show_from_date &lt; Time.now.utc ? nil : show_from_date
+    end
     
     saved = todo.save
     if saved</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>065f543a83657a555523e59cdfc1cbd44de0bd2b</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/b076ae46f8146f67ab84fe0bbe3bd1c7dd153a94</url>
  <id>b076ae46f8146f67ab84fe0bbe3bd1c7dd153a94</id>
  <committed-date>2008-08-19T05:47:51-07:00</committed-date>
  <authored-date>2008-08-19T05:47:51-07:00</authored-date>
  <message>handle nil correctly in last patch</message>
  <tree>1c1858945fde511001d5fddac88dd233c68b398a</tree>
  <committer>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
