Fixes deleting of scheduled maintenance. Closes #498

This commit is contained in:
James Brooks 2015-03-06 08:13:22 +00:00
parent 9ffc64f63d
commit f2837c6c13

View File

@ -211,13 +211,11 @@ class DashScheduleController extends Controller
*/
public function deleteScheduleAction(Incident $schedule)
{
if ($schedule->delete()) {
return Redirect::back()->with('success', sprintf(
'<strong>%s</strong> %s',
trans('dashboard.notifications.awesome'),
trans('dashboard.schedule.delete.success')
));
}
segment_track('Dashboard', [
'event' => 'Deleted Schedule',
]);
$schedule->delete();
return Redirect::back()->with('warning', sprintf(
'<strong>%s</strong> %s',