From d84af6be3a7810026e5f10e0395e9a1ff14dac3f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 15 Jan 2021 22:34:04 +1100 Subject: [PATCH] Fixes for contacts migration --- app/Traits/GenerateMigrationResources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 13e6a119a756..02efdd341ddd 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -232,7 +232,7 @@ trait GenerateMigrationResources 'shipping_state' => $client->shipping_state, 'shipping_postal_code' => $client->shipping_postal_code, 'shipping_country_id' => $client->shipping_country_id, - 'contacts' => $this->getClientContacts($client->contacts), + 'contacts' => $this->getClientContacts($client->contacts()->withTrashed()), 'settings' => $this->getClientSettings($client), 'created_at' => $client->created_at ? Carbon::parse($client->created_at)->toDateString() : null, 'updated_at' => $client->updated_at ? Carbon::parse($client->updated_at)->toDateString() : null,