From eaebaccdaf7e4f1e8afc443a94b73f979c1a851c Mon Sep 17 00:00:00 2001 From: = Date: Fri, 25 Jun 2021 19:58:35 +1000 Subject: [PATCH] Catch all for null subdomains --- 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 4f45ba9a5959..e4bf9466ee8c 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -337,6 +337,10 @@ class Import implements ShouldQueue if(!MultiDB::checkDomainAvailable($data['subdomain'])) $data['subdomain'] = MultiDB::randomSubdomainGenerator(); + + if(strlen($data['subdomain']) == 0) + $data['subdomain'] = MultiDB::randomSubdomainGenerator(); + } $rules = (new UpdateCompanyRequest())->rules();