From 7fdddd5edf71aac1956346b266981cc3e6c164a7 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Mon, 5 Aug 2013 15:39:37 +0400 Subject: [PATCH] orderCreate fix --- intaro.intarocrm/classes/general/events/ICrmOrderEvent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/events/ICrmOrderEvent.php b/intaro.intarocrm/classes/general/events/ICrmOrderEvent.php index bbdee5d5..01ee9dcf 100644 --- a/intaro.intarocrm/classes/general/events/ICrmOrderEvent.php +++ b/intaro.intarocrm/classes/general/events/ICrmOrderEvent.php @@ -80,7 +80,8 @@ class ICrmOrderEvent { 'optionsPayment' => $optionsPayment ); - $result = ICrmOrderActions::orderCreate($ID, $api, $arParams, true); + $arOrder = CSaleOrder::GetById($ID); + $result = ICrmOrderActions::orderCreate($arOrder, $api, $arParams, true); if(!$result) { ICrmOrderActions::eventLog('ICrmOrderEvent::writeDataOnOrderCreate', 'ICrmOrderActions::orderCreate', 'error during creating order');