1
0
mirror of synced 2024-11-25 23:06:08 +03:00

multiship format fix

This commit is contained in:
Grisha Pomadchin 2014-05-22 18:29:03 +04:00
parent 76e0db8202
commit fc4447d925

View File

@ -955,11 +955,10 @@ class ICrmOrderActions
if(isset($order['delivery']) && $order['delivery'] && isset($order['delivery']['integrationCode']) &&
$order['delivery']['integrationCode'] == self::$CRM_MULTISHIP_INTEGRATION_CODE &&
isset($order['delivery']['data']) && $order['delivery']['data']) {
isset($order['delivery']['data']) && $order['delivery']['data'] &&
isset($order['delivery']['data']['service']) && $order['delivery']['data']['service']) {
if(CModule::IncludeModule(self::$MULTISHIP_MODULE_VER)) {
$data = json_decode($order['delivery']['data'], true);
if(isset($data['service']) && $data['service'])
$resultDeliveryTypeId = $resultDeliveryTypeId . ':' . $data['service'];
$resultDeliveryTypeId = $resultDeliveryTypeId . ':' . $order['delivery']['data']['service'];
}
}