Fix redirect on server delete

This commit is contained in:
Dane Everitt 2016-09-14 18:35:33 -04:00
parent fcae6b5f15
commit 06c680ee52

View file

@ -347,12 +347,11 @@ class ServersController extends Controller
} catch(\Exception $ex) { } catch(\Exception $ex) {
Log::error($ex); Log::error($ex);
Alert::danger('An unhandled exception occured while attemping to delete this server. Please try again.')->flash(); Alert::danger('An unhandled exception occured while attemping to delete this server. Please try again.')->flash();
} finally {
return redirect()->route('admin.servers.view', [
'id' => $id,
'tab' => 'tab_delete'
]);
} }
return redirect()->route('admin.servers.view', [
'id' => $id,
'tab' => 'tab_delete'
]);
} }
public function postToggleInstall(Request $request, $id) public function postToggleInstall(Request $request, $id)