mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 03:02:34 +01:00
Fixes for migration
This commit is contained in:
parent
66f23abea1
commit
48520746a2
@ -689,6 +689,8 @@ class Import implements ShouldQueue
|
|||||||
|
|
||||||
unset($modified['id']);
|
unset($modified['id']);
|
||||||
|
|
||||||
|
if(array_key_exists('invitations', $resource))
|
||||||
|
{
|
||||||
foreach($resource['invitations'] as $key => $invite)
|
foreach($resource['invitations'] as $key => $invite)
|
||||||
{
|
{
|
||||||
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
||||||
@ -699,7 +701,9 @@ class Import implements ShouldQueue
|
|||||||
nlog("find a match for " . $invite['client_contact_id'] . " " .$resource['invitations'][$key]['client_contact_id']);
|
nlog("find a match for " . $invite['client_contact_id'] . " " .$resource['invitations'][$key]['client_contact_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$modified['invitations'] = $resource['invitations'];
|
$modified['invitations'] = $resource['invitations'];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$invoice = $invoice_repository->save(
|
$invoice = $invoice_repository->save(
|
||||||
$modified,
|
$modified,
|
||||||
|
Loading…
Reference in New Issue
Block a user