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');