1
0
mirror of synced 2025-01-31 15:22:01 +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": {
"type": "string"
},
"address": {
"type": "string"
},
"shipmentStore": {
"type": "string"
},
@ -505,4 +508,4 @@
"type": "string"
}
}
}
}

View File

@ -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];
}
}
}
}