Merge pull request #14261 from snipe/fixed/missing_location_string

Fixed incorrect string for location not existing
This commit is contained in:
snipe 2024-02-13 20:29:32 +00:00 committed by GitHub
commit a866d6b16e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {