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:
snipe 2025-02-24 23:03:01 +00:00 committed by GitHub
commit ed46a757fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
/**