From e1f73ad4dfb48769d8cc081e6c57a7b0b6bf3177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:17:38 +0300 Subject: [PATCH] fixed contact person update issue --- app/Jobs/Common/CreateContactPersons.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/Common/CreateContactPersons.php b/app/Jobs/Common/CreateContactPersons.php index b107fce1e..415182c70 100644 --- a/app/Jobs/Common/CreateContactPersons.php +++ b/app/Jobs/Common/CreateContactPersons.php @@ -45,9 +45,9 @@ class CreateContactPersons extends Job implements HasOwner, HasSource, ShouldCre 'company_id' => $this->contact->company_id, 'type' => $this->contact->type, 'contact_id' => $this->contact->id, - 'name' => $person['name'], - 'email' => $person['email'], - 'phone' => $person['phone'], + 'name' => $person['name'] ?? null, + 'email' => $person['email'] ?? null, + 'phone' => $person['phone'] ?? null, 'created_from' => $this->request['created_from'], 'created_by' => $this->request['created_by'], ]);