From f2837c6c13a96ed928c6f92e7fc679147b4f7e78 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 6 Mar 2015 08:13:22 +0000 Subject: [PATCH] Fixes deleting of scheduled maintenance. Closes #498 --- src/Http/Controllers/DashScheduleController.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Http/Controllers/DashScheduleController.php b/src/Http/Controllers/DashScheduleController.php index a339edc8..c4f5c82c 100644 --- a/src/Http/Controllers/DashScheduleController.php +++ b/src/Http/Controllers/DashScheduleController.php @@ -211,13 +211,11 @@ class DashScheduleController extends Controller */ public function deleteScheduleAction(Incident $schedule) { - if ($schedule->delete()) { - return Redirect::back()->with('success', sprintf( - '%s %s', - trans('dashboard.notifications.awesome'), - trans('dashboard.schedule.delete.success') - )); - } + segment_track('Dashboard', [ + 'event' => 'Deleted Schedule', + ]); + + $schedule->delete(); return Redirect::back()->with('warning', sprintf( '%s %s',