From b6828440f7c9cd67661f973b258010fde08aa24c Mon Sep 17 00:00:00 2001 From: gorokh Date: Thu, 14 Nov 2019 13:49:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B3=D0=BE=20=D0=B0?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- intaro.retailcrm/classes/general/config/retailcrm.json | 5 ++++- intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/intaro.retailcrm/classes/general/config/retailcrm.json b/intaro.retailcrm/classes/general/config/retailcrm.json index 222804ea..02d708b2 100644 --- a/intaro.retailcrm/classes/general/config/retailcrm.json +++ b/intaro.retailcrm/classes/general/config/retailcrm.json @@ -462,6 +462,9 @@ "text": { "type": "string" }, + "address": { + "type": "string" + }, "shipmentStore": { "type": "string" }, @@ -505,4 +508,4 @@ "type": "string" } } -} \ No newline at end of file +} diff --git a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php index b5177f06..6a09b5d5 100644 --- a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php +++ b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php @@ -119,7 +119,9 @@ class RetailCrmOrder $prop['VALUE'][0] = $location['NAME']; } - $order['delivery']['address'][$search] = $prop['VALUE'][0]; + if (!empty($prop['VALUE'][0])) { + $order['delivery']['address'][$search] = $prop['VALUE'][0]; + } } } }