Skip to content

A free open source IT asset/license management system

fix: reference to item location on location edit method

Jesse Ostrander6a8a41b3892a
diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.php
index 7cf44d604b..a018b8a68a 100755
--- a/app/Http/Controllers/LocationsController.php
+++ b/app/Http/Controllers/LocationsController.php
@@ -100,7 +100,7 @@ class LocationsController extends Controller
public function edit(Location $location) : View | RedirectResponse
{
$this->authorize('update', Location::class);
- return view('locations/edit');
+ return view('locations/edit')->with('item', $location);
}
/**