mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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 (isset($asset->id)) {
|
||||||
|
|
||||||
if ($asset->userloc) {
|
if ($asset->assetloc) {
|
||||||
$use_currency = $asset->userloc->currency;
|
|
||||||
} elseif ($asset->assetloc) {
|
|
||||||
$use_currency = $asset->assetloc->currency;
|
$use_currency = $asset->assetloc->currency;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,7 @@ class Asset extends Depreciable
|
||||||
public function assetLoc()
|
public function assetLoc()
|
||||||
{
|
{
|
||||||
if ($this->assignedTo) {
|
if ($this->assignedTo) {
|
||||||
return $this->assignedTo->userLoc();
|
return $this->assignedTo->userloc();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->assignedType())) {
|
if (!empty($this->assignedType())) {
|
||||||
|
|
Loading…
Reference in a new issue