Fixed customer empty email get contacts list..
This commit is contained in:
parent
c49f282700
commit
4e60e7a9d9
|
|
@ -162,7 +162,9 @@ class Contact extends Model
|
|||
{
|
||||
$contacts = collect();
|
||||
|
||||
$contacts->push($this);
|
||||
if (! empty($this->email)) {
|
||||
$contacts->push($this);
|
||||
}
|
||||
|
||||
$contact_persons = $this->contact_persons()->whereNotNull('email')->get();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue