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();