Merge pull request #10655 from inietov/fixes/trying_to_get_property_checkin_email_of_non-object_develop
Fixes ErrorException: Trying to get property 'checkin_email' of non-object for develop[sc-17568]
This commit is contained in:
commit
b78f32e876
1 changed files with 3 additions and 1 deletions
|
@ -830,7 +830,9 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function checkin_email()
|
public function checkin_email()
|
||||||
{
|
{
|
||||||
return $this->model->category->checkin_email;
|
if (($this->model) && ($this->model->category)) {
|
||||||
|
return $this->model->category->checkin_email;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue