Fix old route (#4053)

Looks like we missed in the v4 port.  Fixes the unrelated issue in #4052
This commit is contained in:
Daniel Meltzer 2017-09-28 19:02:50 -04:00 committed by snipe
parent 3d7277398c
commit af19e5d976

View file

@ -380,7 +380,7 @@ class AssetsController extends Controller
if ($asset->save()) { if ($asset->save()) {
// Redirect to the new asset page // Redirect to the new asset page
\Session::flash('success', trans('admin/hardware/message.update.success')); \Session::flash('success', trans('admin/hardware/message.update.success'));
return response()->json(['redirect_url' => route("view/hardware", $assetId)]); return response()->json(['redirect_url' => route("hardware.show", $assetId)]);
} }
\Input::flash(); \Input::flash();
\Session::flash('errors', $asset->getErrors()); \Session::flash('errors', $asset->getErrors());