Fixed bug preventing updates tasks

This commit is contained in:
Paul van Tilburg 2014-10-25 22:32:57 +02:00
parent f831580c3d
commit 60230c5854
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ module StopTime::Controllers
return redirect R(CustomersN, customer_id) if @input.cancel
@task = Task.find(task_id)
if @input.has_key? "update"
@task["customer"] = Customer.find(@input["customer"])
@task.customer = Customer.find(@input["customer"])
@task.name = @input["name"] unless @input["name"].blank?
if @task.billed? and @input["invoice_comment"].present?
@task.invoice_comment = @input["invoice_comment"]