From bd88640436fcefd2f8b64a837060e8af3a59e01e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 3 May 2021 14:02:55 +1000 Subject: [PATCH] Fixes for invitations in migration --- app/Jobs/Util/Import.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 907dad3236..badcb00970 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -677,6 +677,8 @@ class Import implements ShouldQueue $resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']); $resource['invitations'][$key]['user_id'] = $modified['user_id']; $resource['invitations'][$key]['company_id'] = $this->company->id; + $resource['invitations'][$key]['email_status'] = ''; + unset($resource['invitations'][$key]['recurring_invoice_id']); unset($resource['invitations'][$key]['id']); @@ -741,6 +743,7 @@ class Import implements ShouldQueue $resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']); $resource['invitations'][$key]['user_id'] = $modified['user_id']; $resource['invitations'][$key]['company_id'] = $this->company->id; + $resource['invitations'][$key]['email_status'] = ''; unset($resource['invitations'][$key]['invoice_id']); unset($resource['invitations'][$key]['id']); } @@ -870,6 +873,7 @@ class Import implements ShouldQueue $resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']); $resource['invitations'][$key]['user_id'] = $modified['user_id']; $resource['invitations'][$key]['company_id'] = $this->company->id; + $resource['invitations'][$key]['email_status'] = ''; unset($resource['invitations'][$key]['invoice_id']); unset($resource['invitations'][$key]['id']); }