1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Slight modification for query of company owner

This commit is contained in:
David Bomba 2022-03-09 09:38:07 +11:00
parent 406b21625c
commit 85b58ec8df

View File

@ -476,7 +476,8 @@ class Company extends BaseModel
public function owner()
{
return $this->company_users->where('is_owner', true)->first()->user;
return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user;
//return $this->company_users->where('is_owner', true)->first()->user;
}
public function resolveRouteBinding($value, $field = null)