From a1cf53dedf5a41f46b56e936f81ec0afe2807bd1 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Thu, 13 Feb 2014 17:34:42 +0400 Subject: [PATCH] order status empty fix --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index c13fc5f3..29cd8ae2 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -852,7 +852,7 @@ class ICrmOrderActions CSaleOrder::Update($order['externalId'], $arFields); // set STATUS_ID - if($optionsPayStatuses[$order['status']]) + if($order['status'] && $optionsPayStatuses[$order['status']]) CSaleOrder::StatusOrder($order['externalId'], $optionsPayStatuses[$order['status']]); // uncancel order