From 5f648742529cfe8cf085af552ad56d7ee76d385b Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Thu, 10 Nov 2011 12:50:02 +0100 Subject: [PATCH] Fixed a problem where a cancel button was not handled. --- stoptime.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/stoptime.rb b/stoptime.rb index 747d3d8..7c4c68e 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -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