mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Switched to route from redirect->to
This commit is contained in:
parent
ec7e89ecb8
commit
8d50bb19af
|
@ -185,7 +185,7 @@ class StatuslabelsController extends Controller
|
|||
// Was the asset created?
|
||||
if ($statuslabel->save()) {
|
||||
// Redirect to the saved Statuslabel page
|
||||
return redirect()->to("admin/settings/statuslabels/")->with('success', trans('admin/statuslabels/message.update.success'));
|
||||
return redirect()->route("statuslabels.index")->with('success', trans('admin/statuslabels/message.update.success'));
|
||||
}
|
||||
return redirect()->back()->withInput()->withErrors($statuslabel->getErrors());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue