mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fixed case for userloc
This commit is contained in:
parent
2aaa635345
commit
58b2834c54
|
@ -588,9 +588,7 @@ class AssetsController extends Controller
|
|||
|
||||
if (isset($asset->id)) {
|
||||
|
||||
if ($asset->userloc) {
|
||||
$use_currency = $asset->userloc->currency;
|
||||
} elseif ($asset->assetloc) {
|
||||
if ($asset->assetloc) {
|
||||
$use_currency = $asset->assetloc->currency;
|
||||
} else {
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ class Asset extends Depreciable
|
|||
public function assetLoc()
|
||||
{
|
||||
if ($this->assignedTo) {
|
||||
return $this->assignedTo->userLoc();
|
||||
return $this->assignedTo->userloc();
|
||||
}
|
||||
|
||||
if (!empty($this->assignedType())) {
|
||||
|
|
Loading…
Reference in a new issue