mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fixes deleting of scheduled maintenance. Closes #498
This commit is contained in:
parent
9ffc64f63d
commit
f2837c6c13
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user