mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for import
This commit is contained in:
parent
6dbba38a49
commit
b4698b1919
@ -1139,7 +1139,10 @@ class Import implements ShouldQueue
|
|||||||
$payment->save(['timestamps' => false]);
|
$payment->save(['timestamps' => false]);
|
||||||
|
|
||||||
if (array_key_exists('company_gateway_id', $resource) && isset($resource['company_gateway_id']) && $resource['company_gateway_id'] != 'NULL') {
|
if (array_key_exists('company_gateway_id', $resource) && isset($resource['company_gateway_id']) && $resource['company_gateway_id'] != 'NULL') {
|
||||||
$payment->company_gateway_id = $this->transformId('company_gateways', $resource['company_gateway_id']);
|
|
||||||
|
if($this->tryTransformingId('company_gateways', $resource['company_gateway_id']))
|
||||||
|
$payment->company_gateway_id = $this->transformId('company_gateways', $resource['company_gateway_id']);
|
||||||
|
|
||||||
$payment->save();
|
$payment->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user