mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:24:42 -04:00
Updates for subdomains when importing
This commit is contained in:
parent
f7841aced1
commit
3cb7f79fd4
@ -398,6 +398,9 @@ class Import implements ShouldQueue
|
||||
$data = $this->transformCompanyData($data);
|
||||
|
||||
if (Ninja::isHosted()) {
|
||||
|
||||
$data['subdomain'] = str_replace("_","",$data['subdomain']);
|
||||
|
||||
if (!MultiDB::checkDomainAvailable($data['subdomain'])) {
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user