Skip to content

Commit

Permalink
Merge pull request #14261 from snipe/fixed/missing_location_string
Browse files Browse the repository at this point in the history
Fixed incorrect string for location not existing
  • Loading branch information
snipe authored Feb 13, 2024
2 parents 60ba898 + a76a69d commit a866d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/LocationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function destroy($locationId)
{
$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) {
Expand Down

0 comments on commit a866d6b

Please sign in to comment.