Fix for assigned user location

Was breaking requestable page
This commit is contained in:
snipe 2017-09-25 11:26:04 -07:00
parent 30019a144a
commit d49b67d033

View file

@ -262,11 +262,12 @@ class Asset extends Depreciable
return $this->assignedTo();
}
if ($this->assignedType() == self::USER) {
return $this->assignedTo->userLoc();
}
if (!$this->assignedTo) {
return $this->defaultLoc();
}
return $this->assignedTo->userLoc();
}
}
return $this->defaultLoc();
}