1
0
mirror of synced 2025-01-31 23:31:41 +03:00

добавлена обработка пустого адреса

This commit is contained in:
gorokh 2019-11-14 13:49:24 +03:00
parent 027e3571a5
commit b6828440f7
2 changed files with 7 additions and 2 deletions

View File

@ -462,6 +462,9 @@
"text": { "text": {
"type": "string" "type": "string"
}, },
"address": {
"type": "string"
},
"shipmentStore": { "shipmentStore": {
"type": "string" "type": "string"
}, },

View File

@ -119,7 +119,9 @@ class RetailCrmOrder
$prop['VALUE'][0] = $location['NAME']; $prop['VALUE'][0] = $location['NAME'];
} }
$order['delivery']['address'][$search] = $prop['VALUE'][0]; if (!empty($prop['VALUE'][0])) {
$order['delivery']['address'][$search] = $prop['VALUE'][0];
}
} }
} }
} }