Fixed a problem where a cancel button was not handled.
This commit is contained in:
parent
c67589f452
commit
5f64874252
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue