mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 13:14:07 -08:00
Checkout update locationid (#5919)
* Fix missing punctuation. Bad merge. * If we're checking out to an location, use it's id instead of location_id
This commit is contained in:
parent
3bc43210ab
commit
059126f642
|
@ -250,7 +250,7 @@ class UsersController extends Controller
|
|||
|
||||
} catch (ModelNotFoundException $e) {
|
||||
return redirect()->route('users.index')
|
||||
->with('error', trans('admin/users/message.user_not_found', compact('id')))
|
||||
->with('error', trans('admin/users/message.user_not_found', compact('id')));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -228,6 +228,9 @@ class Asset extends Depreciable
|
|||
if($target->location) {
|
||||
$this->location_id = $target->location->id;
|
||||
}
|
||||
if($target instanceof Location) {
|
||||
$this->location_id = $target->id;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue