From e706ae7d25eaa9c7eae3d1ac79e1d84346284844 Mon Sep 17 00:00:00 2001 From: Frosin Date: Tue, 30 Jul 2019 09:58:15 +0300 Subject: [PATCH] Fixed duplicate creation bug --- intaro.retailcrm/classes/general/events/RetailCrmEvent.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php index 1497a6ce..da2ffcd1 100644 --- a/intaro.retailcrm/classes/general/events/RetailCrmEvent.php +++ b/intaro.retailcrm/classes/general/events/RetailCrmEvent.php @@ -100,12 +100,15 @@ class RetailCrmEvent } if ($GLOBALS['RETAILCRM_ORDER_OLD_EVENT'] === false - && $GLOBALS['RETAIL_CRM_HISTORY'] === true && $GLOBALS['RETAILCRM_ORDER_DELETE'] === true ) { return false; } + if ($GLOBALS['RETAIL_CRM_HISTORY'] === true) { + return false; + } + if (!CModule::IncludeModule('iblock')) { RCrmActions::eventLog('RetailCrmEvent::orderSave', 'iblock', 'module not found');