From 60230c5854e647dae9b81adbe6bb9782f466ba1d Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 25 Oct 2014 22:32:57 +0200 Subject: [PATCH] Fixed bug preventing updates tasks --- stoptime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index 7221dd7..0d60351 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -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"]