From 97a75c1950674ad916441fd8c5e34642a75cf90e Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Tue, 13 Mar 2018 14:40:30 +0300 Subject: [PATCH] Fix customer password --- CHANGELOG.md | 3 +++ admin/model/extension/retailcrm/history/v4_5.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffb2271..ad44753 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v.3.0.3 +* Исправлена ошибка с изменением пароля пользователя + ## v.3.0.2 * Улучшена механика выгрузки изменений из RetailCRM на сайт * Улучшена механика выборки типов доставки на сайте diff --git a/admin/model/extension/retailcrm/history/v4_5.php b/admin/model/extension/retailcrm/history/v4_5.php index a3ee710..645fc86 100644 --- a/admin/model/extension/retailcrm/history/v4_5.php +++ b/admin/model/extension/retailcrm/history/v4_5.php @@ -761,6 +761,7 @@ class ModelExtensionRetailcrmHistoryV45 extends ModelExtensionRetailcrmHistory foreach ($customers as $customer) { $customer_id = $customer['externalId']; $customerData = $this->model_customer_customer->getCustomer($customer_id); + $customerData['password'] = false; $customerData['firstname'] = $customer['firstName']; $customerData['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : ''; @@ -781,7 +782,7 @@ class ModelExtensionRetailcrmHistoryV45 extends ModelExtensionRetailcrmHistory $customerAddress['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : ''; $customerAddress['address_1'] = $customer['address']['text']; $customerAddress['city'] = $customer['address']['city']; - $customerAddress['postcode'] = $customer['address']['index'] ? $customer['address']['index'] : ''; + $customerAddress['postcode'] = isset($customer['address']['index']) ? $customer['address']['index'] : ''; if (isset($customerCountry)) { $customerAddress['country_id'] = $customerCountry['country_id'];