1
0
mirror of synced 2024-11-22 13:26:10 +03:00

Merge pull request #74 from Frosin/master

Fixed duplicate creation bug
This commit is contained in:
Alex Lushpai 2019-08-14 22:03:29 +03:00 committed by GitHub
commit a56965dcba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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