mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #14261 from snipe/fixed/missing_location_string
Fixed incorrect string for location not existing
This commit is contained in:
commit
a866d6b16e
|
@ -168,7 +168,7 @@ class LocationsController extends Controller
|
||||||
{
|
{
|
||||||
$this->authorize('delete', Location::class);
|
$this->authorize('delete', Location::class);
|
||||||
if (is_null($location = Location::find($locationId))) {
|
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) {
|
if ($location->users()->count() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue