Omitting customer tags while merging the address

This commit is contained in:
max-baranikov 2021-05-28 16:06:38 +03:00 committed by GitHub
parent 1206634b9c
commit d4982bb7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,6 +256,10 @@ class RetailcrmOrderBuilder
$customer = $this->createdCustomer;
} else {
$crmCustomer = RetailcrmTools::mergeCustomerAddress($customer, $this->buildRegularAddress());
if (isset($crmCustomer['tags'])) {
unset($crmCustomer['tags']);
}
$response = $this->api->customersEdit($crmCustomer);
if ($response instanceof RetailcrmApiResponse && $response->isSuccessful()) {