Fixed bug preventing updates tasks
This commit is contained in:
parent
f831580c3d
commit
60230c5854
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue