mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
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:
parent
838b2d83c2
commit
7fb8140129
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue