1
0
mirror of synced 2025-01-31 15:22:01 +03:00

Merge pull request #67 from Frosin/master

Исправлен баг связанный с некорректным externalId заказа
This commit is contained in:
Alex Lushpai 2019-05-30 14:37:05 +03:00 committed by GitHub
commit 1c5a15d30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,7 +423,7 @@ class RetailCrmHistory
if (isset($order['externalId'])) {
$itemUpdate = false;
if ($order['externalId']) {
if ($order['externalId'] && is_numeric($order['externalId'])) {
try {
$newOrder = Bitrix\Sale\Order::load($order['externalId']);
} catch (Bitrix\Main\ArgumentNullException $e) {