Fixed customer empty email get contacts list..

This commit is contained in:
Cüneyt Şentürk 2024-10-09 17:29:23 +01:00
parent c49f282700
commit 4e60e7a9d9
1 changed files with 3 additions and 1 deletions

View File

@ -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();