From 210091569cd9ae4048efd2f895fa4dc6a682cde1 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 18 Apr 2024 13:49:56 +0300 Subject: [PATCH] shipment fix 3 --- erp24/modul/shipment/functionsShipment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index 951cf52..0e8a1fc 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); -- 2.39.5