1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

fix null payment. v5

This commit is contained in:
Dmitry Mamontov 2018-01-22 18:55:56 +03:00 committed by GitHub
parent 26cd3bc7d7
commit cc74d416bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' => ''));
}
}
}
}