From a76a69d0854d6ffbdee862a7137a5c9d2f6e2e72 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 13 Feb 2024 20:23:32 +0000 Subject: [PATCH] Fixed incorrect string for location not existing Signed-off-by: snipe --- app/Http/Controllers/LocationsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.php index 08dc38b3ac..7a4b47b385 100755 --- a/app/Http/Controllers/LocationsController.php +++ b/app/Http/Controllers/LocationsController.php @@ -168,7 +168,7 @@ class LocationsController extends Controller { $this->authorize('delete', Location::class); if (is_null($location = Location::find($locationId))) { - return redirect()->to(route('locations.index'))->with('error', trans('admin/locations/message.not_found')); + return redirect()->to(route('locations.index'))->with('error', trans('admin/locations/message.does_not_exist')); } if ($location->users()->count() > 0) {