fatfreecrm/fat_free_crm — pull request #185 by rubydev (2012-08-08 12:24:00+00:00)
Title: Fix problem with create task on specific date

When I want create task on specific date on lead, task is created, but ActionView raise error.

ActionView::Template::Error (expected numeric):
35: = l(pending.due_at.localtime, :format => :mmddhhss)
36: - else
37: = distance_of_time_in_words(Time.now, pending.due_at)
38: = '(' << l(pending.due_at.localtime, :format => :mmddhhss) << ')'
39:
40: - else
app/views/tasks/create.js.rjs:32:in `block in _app_views_tasks_create_js_rjs___4415742061750010830_17258866880'
app/views/tasks/create.js.rjs:1:in `_app_views_tasks_create_js_rjs___4415742061750010830_17258866880'
app/controllers/tasks_controller.rb:87:in `create'