From e8aedb39beea764d963061a8ca5cdf5ed009f5da Mon Sep 17 00:00:00 2001 From: KMityai Date: Wed, 13 Apr 2022 16:54:59 +0300 Subject: [PATCH] site rewrite fixed --- intaro.retailcrm/classes/general/events/RetailCrmEvent.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php index 563d2adf..bc262e13 100644 --- a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php +++ b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php @@ -154,6 +154,8 @@ class RetailCrmEvent $site = null; } + $api->setSite($site); + //new order? $orderCrm = RCrmActions::apiMethod($api, 'ordersGet', __METHOD__, $arOrder['ID'], $site); @@ -360,7 +362,7 @@ class RetailCrmEvent $nickName, $address, $api, - $site = null + $site ); $arParams['customerCorporate'] = $userCorp['customerCorporate'];