1
0
mirror of synced 2024-11-22 05:16:09 +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; $GLOBALS['RETAIL_CRM_HISTORY'] = true;
$newUser = new CUser(); $newUser = new CUser();
$customerBuilder = new CustomerBuilder();
foreach ($customers as $customer) { foreach ($customers as $customer) {
$customerBuilder = new CustomerBuilder();
if (function_exists('retailCrmBeforeCustomerSave')) { if (function_exists('retailCrmBeforeCustomerSave')) {
$newResCustomer = retailCrmBeforeCustomerSave($customer); $newResCustomer = retailCrmBeforeCustomerSave($customer);
if (is_array($newResCustomer) && !empty($newResCustomer)) { if (is_array($newResCustomer) && !empty($newResCustomer)) {