fix null payment. v5
This commit is contained in:
parent
26cd3bc7d7
commit
cc74d416bb
1 changed files with 3 additions and 1 deletions
|
@ -743,7 +743,9 @@ class RetailCrmHistory
|
|||
RCrmActions::apiMethod($api, 'paymentEditById', __METHOD__, $newHistoryPayments[$orderPayment->getField('XML_ID')]);
|
||||
}
|
||||
|
||||
\Bitrix\Sale\Internals\PaymentTable::update($paymentExternalId, array('XML_ID' => ''));
|
||||
if (!is_null($paymentExternalId)) {
|
||||
\Bitrix\Sale\Internals\PaymentTable::update($paymentExternalId, array('XML_ID' => ''));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue