1
0
mirror of synced 2024-11-25 14:56:09 +03:00

Fixed duplicate creation bug

This commit is contained in:
Frosin 2019-07-30 09:58:15 +03:00
parent 93315c7a5b
commit e706ae7d25

View File

@ -100,12 +100,15 @@ class RetailCrmEvent
} }
if ($GLOBALS['RETAILCRM_ORDER_OLD_EVENT'] === false if ($GLOBALS['RETAILCRM_ORDER_OLD_EVENT'] === false
&& $GLOBALS['RETAIL_CRM_HISTORY'] === true
&& $GLOBALS['RETAILCRM_ORDER_DELETE'] === true && $GLOBALS['RETAILCRM_ORDER_DELETE'] === true
) { ) {
return false; return false;
} }
if ($GLOBALS['RETAIL_CRM_HISTORY'] === true) {
return false;
}
if (!CModule::IncludeModule('iblock')) { if (!CModule::IncludeModule('iblock')) {
RCrmActions::eventLog('RetailCrmEvent::orderSave', 'iblock', 'module not found'); RCrmActions::eventLog('RetailCrmEvent::orderSave', 'iblock', 'module not found');