mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #16320 from jostrander/fix/location-edit
Fixed: fix 500 on edit locations page by referencing current location
This commit is contained in:
commit
ed46a757fa
|
@ -100,7 +100,7 @@ class LocationsController extends Controller
|
||||||
public function edit(Location $location) : View | RedirectResponse
|
public function edit(Location $location) : View | RedirectResponse
|
||||||
{
|
{
|
||||||
$this->authorize('update', Location::class);
|
$this->authorize('update', Location::class);
|
||||||
return view('locations/edit');
|
return view('locations/edit')->with('item', $location);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue