Fixed a problem where a cancel button was not handled.

This commit is contained in:
Paul van Tilburg 2011-11-10 12:50:02 +01:00
parent c67589f452
commit 5f64874252
1 changed files with 1 additions and 0 deletions

View File

@ -363,6 +363,7 @@ module StopTime::Controllers
class CustomersNTasks
def post(customer_id)
return redirect R(Customers) if @input.cancel
if @input.has_key? "delete"
@task = Task.find(@input.task_id)
@task.delete