From 0feba07ae5966f0d67de2781718afe1453f3c4e0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 14 Mar 2023 07:44:01 +1100 Subject: [PATCH] Enforce types and defaults for vendor currency and client country --- 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 a5e12e1316..0b2acf9092 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -353,7 +353,7 @@ trait GenerateMigrationResources 'city' => $client->city, 'state' => $client->state, 'postal_code' => $client->postal_code, - 'country_id' => $client->country_id, + 'country_id' => $client->country_id ? (string) $client->country_id : (string) $this->account->country_id, 'phone' => $client->work_phone, 'private_notes' => $client->private_notes, 'website' => $client->website,