Fix value class issue in task form preseeding

This commit is contained in:
Paul van Tilburg 2011-11-29 16:21:09 +01:00
parent bd45416675
commit aa35d43986
1 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ module StopTime::Controllers
@task = Task.new(:hourly_rate => @customer.hourly_rate)
@input = @task.attributes
@input["type"] = @task.type # FIXME: find nicer way!
@input["customer"] = customer_id
@input["customer"] = @customer.id
@target = [CustomersNTasks, customer_id]
@method = "create"
@ -670,7 +670,7 @@ module StopTime::Controllers
@method = "update"
@input = @task.attributes
@input["type"] = @task.type
@input["customer"] = customer_id
@input["customer"] = @customer.id
# FIXME: Check that task is of that customer.
render :task_form
end