Fixed adding of actions with due dates from the context and project pages, which I broke with addition of Chronic parsing. Formerly, the record would be saved, but the page would not update using Ajax.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@341 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2006-11-13 12:36:07 +00:00
parent 838b2d83c2
commit 7fb8140129
2 changed files with 4 additions and 2 deletions

View file

@ -70,7 +70,8 @@ class ContextController < ApplicationController
@item.attributes = params["todo"]
if @item.due?
@item.due = parse_date_per_user_prefs(params["todo"]["due"])
@date = parse_date_per_user_prefs(params["todo"]["due"])
@item.due = @date.to_s(:db)
else
@item.due = ""
end

View file

@ -94,7 +94,8 @@ class ProjectController < ApplicationController
@item.attributes = params["todo"]
if @item.due?
@item.due = parse_date_per_user_prefs(params["todo"]["due"])
@date = parse_date_per_user_prefs(params["todo"]["due"])
@item.due = @date.to_s(:db)
else
@item.due = ""
end