mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #6234 from turbo124/v5-develop
Fixes for subdomain fill
This commit is contained in:
commit
8485bddfee
@ -336,7 +336,7 @@ class Import implements ShouldQueue
|
||||
|
||||
$data = $this->transformCompanyData($data);
|
||||
|
||||
if(Ninja::isHosted() && strlen($data['subdomain']) > 1) {
|
||||
if(Ninja::isHosted()) {
|
||||
|
||||
if(!MultiDB::checkDomainAvailable($data['subdomain']))
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
|
@ -125,9 +125,9 @@ class TaskStatusApiTest extends TestCase
|
||||
|
||||
public function testTaskStatusDeletedFromDELETEROute()
|
||||
{
|
||||
$data = [
|
||||
'ids' => [$this->encodePrimaryKey($this->task_status->id)],
|
||||
];
|
||||
// $data = [
|
||||
// 'ids' => [$this->encodePrimaryKey($this->task_status->id)],
|
||||
// ];
|
||||
|
||||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
@ -135,7 +135,8 @@ class TaskStatusApiTest extends TestCase
|
||||
])->delete('/api/v1/task_statuses/'.$this->encodePrimaryKey($this->task_status->id));
|
||||
|
||||
$arr = $response->json();
|
||||
nlog($arr);
|
||||
// nlog($arr);
|
||||
|
||||
$this->assertTrue($arr['data']['is_deleted']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user