1
0
mirror of synced 2024-11-24 22:36:07 +03:00

replace CustomerBuilder

This commit is contained in:
Sergey Chazov 2021-03-23 12:29:02 +03:00
parent 1d2a9dca82
commit cec1dafd36

View File

@ -63,9 +63,10 @@ class RetailCrmHistory
$GLOBALS['RETAIL_CRM_HISTORY'] = true;
$newUser = new CUser();
$customerBuilder = new CustomerBuilder();
foreach ($customers as $customer) {
$customerBuilder = new CustomerBuilder();
if (function_exists('retailCrmBeforeCustomerSave')) {
$newResCustomer = retailCrmBeforeCustomerSave($customer);
if (is_array($newResCustomer) && !empty($newResCustomer)) {