1
0
mirror of synced 2025-01-31 23:31:41 +03:00

Catch exception from CSaleOrder::Update

This commit is contained in:
iks 2016-04-11 17:17:43 +03:00
parent 2380ce6108
commit ff9970b2be

View File

@ -904,7 +904,15 @@ else{
}
if(!empty($arFields)) {
try {
CSaleOrder::Update($order['externalId'], $arFields);
} catch (Exception $e) {
self::eventLog(
'ICrmOrderActions::orderHistory', 'CSaleOrder::Update',
$e->getCode() . ': ' . $e->getMessage() . ' (order external id: '.$order['externalId'].')'
);
continue;
}
}
if(isset($order['status']) && $order['status']) {