From d4982bb7cb1407779da68d00a90d66801eff9aba Mon Sep 17 00:00:00 2001 From: max-baranikov Date: Fri, 28 May 2021 16:06:38 +0300 Subject: [PATCH] Omitting customer tags while merging the address --- retailcrm/lib/RetailcrmOrderBuilder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retailcrm/lib/RetailcrmOrderBuilder.php b/retailcrm/lib/RetailcrmOrderBuilder.php index cf54f7a..b1ac536 100644 --- a/retailcrm/lib/RetailcrmOrderBuilder.php +++ b/retailcrm/lib/RetailcrmOrderBuilder.php @@ -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()) {