From c39f0eb88833c25d1bff4ee9c9ed91a7bded13f8 Mon Sep 17 00:00:00 2001 From: vasilevdm Date: Tue, 8 Sep 2020 14:31:42 +0300 Subject: [PATCH] fix order save when corporate isn`t enabled and CRM_CC is undefined (#135) --- intaro.retailcrm/classes/general/events/RetailCrmEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php index 956cbf8b..5773406a 100644 --- a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php +++ b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php @@ -195,7 +195,7 @@ class RetailCrmEvent $orderCompany = null; - if ("Y" == $optionCorpClient && $optionsContragentType[$arOrder['PERSON_TYPE_ID']] == 'legal-entity') { + if ("Y" === $optionCorpClient && $optionsContragentType[$arOrder['PERSON_TYPE_ID']] == 'legal-entity') { //corparate cliente $nickName = ''; $address = '';