mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for document import
This commit is contained in:
parent
f06886fcb4
commit
4018d3d6a0
@ -1112,6 +1112,9 @@ class CompanyImport implements ShouldQueue
|
|||||||
|
|
||||||
foreach((object)$this->getObject("documents") as $document)
|
foreach((object)$this->getObject("documents") as $document)
|
||||||
{
|
{
|
||||||
|
//todo enable this for v5.5.51
|
||||||
|
if(!$this->transformDocumentId($document->documentable_id, $document->documentable_type))
|
||||||
|
continue;
|
||||||
|
|
||||||
$new_document = new Document();
|
$new_document = new Document();
|
||||||
$new_document->user_id = $this->transformId('users', $document->user_id);
|
$new_document->user_id = $this->transformId('users', $document->user_id);
|
||||||
@ -1279,6 +1282,9 @@ class CompanyImport implements ShouldQueue
|
|||||||
case Payment::class:
|
case Payment::class:
|
||||||
return $this->transformId('payments', $id);
|
return $this->transformId('payments', $id);
|
||||||
break;
|
break;
|
||||||
|
case Project::class:
|
||||||
|
return $this->transformId('projects', $id);
|
||||||
|
break;
|
||||||
case Product::class:
|
case Product::class:
|
||||||
return $this->transformId('products', $id);
|
return $this->transformId('products', $id);
|
||||||
break;
|
break;
|
||||||
@ -1294,7 +1300,7 @@ class CompanyImport implements ShouldQueue
|
|||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
# code...
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user