mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-07 03:47:32 -08:00
Merge branch 'develop'
This commit is contained in:
commit
6285a8b5b2
|
@ -197,11 +197,7 @@ class AccessoriesController extends Controller
|
||||||
if (isset($accessory->id)) {
|
if (isset($accessory->id)) {
|
||||||
return view('accessories/view', compact('accessory'));
|
return view('accessories/view', compact('accessory'));
|
||||||
}
|
}
|
||||||
// Prepare the error message
|
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist', compact('id')));
|
||||||
$error = trans('admin/accessories/message.does_not_exist', compact('id'));
|
|
||||||
|
|
||||||
// Redirect to the user management page
|
|
||||||
return redirect()->route('accessories')->with('error', $error);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue