From: Alexander Smirnov Date: Thu, 18 Apr 2024 10:49:56 +0000 (+0300) Subject: shipment fix 3 X-Git-Tag: 1.1~136^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=210091569cd9ae4048efd2f895fa4dc6a682cde1;p=erp24_rep%2Fyii-erp24%2F.git shipment fix 3 --- diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index 951cf523..0e8a1fcd 100644 --- a/erp24/modul/shipment/functionsShipment.php +++ b/erp24/modul/shipment/functionsShipment.php @@ -513,7 +513,7 @@ global $FiledsData, $fieldsRows, $orderId; ) {$storeId="NULL"; $color=$colorFirst; } -$value=$FiledsData[$field_name][$productId][$storeId][$color]??''; +$value=$FiledsData[$field_name][$productId][$storeId][$color] ?? 0; //$value=$field_name; $tip=$fieldsRows[$field_name]["tip"]; @@ -525,9 +525,9 @@ $value=$FiledsData[$field_name][$productId][$storeId][$color]??''; } -$value_title=$FiledsData["title__".$field_name][$productId][$storeId][$color] ?? 0; -if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId][$storeId]["NULL"] ?? 0; -if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId]["NULL"]["NULL"] ?? 0; +$value_title=$FiledsData["title__".$field_name][$productId][$storeId][$color] ?? ''; +if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId][$storeId]["NULL"] ?? ''; +if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId]["NULL"]["NULL"] ?? ''; //$value_title=" $field_name $productId $storeId $color "; if($tip!="string" and $tip!="double" ) $value=round($value);