From: Alexander Smirnov Date: Mon, 1 Jul 2024 13:43:33 +0000 (+0300) Subject: [ERP-74] Исправление значений по умолчанию X-Git-Tag: 1.3~29^2~21 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=9dfb2ee70b7da95b6c75b2ad689ccd0c9d61115e;p=erp24_rep%2Fyii-erp24%2F.git [ERP-74] Исправление значений по умолчанию --- diff --git a/erp24/modul/shipment/config.php b/erp24/modul/shipment/config.php index 40de0e5f..9d8949a6 100644 --- a/erp24/modul/shipment/config.php +++ b/erp24/modul/shipment/config.php @@ -96,7 +96,7 @@ $status_id_on=$status_id; $groups_sql=implode(",",$_REQUEST["groups"][$status_id]); -if($_REQUEST["stores_show"][$status_id]=="on") $stores_show=1; else $stores_show=0; +if(($_REQUEST["stores_show"][$status_id] ?? '')=="on") $stores_show=1; else $stores_show=0; $status_json=array(); @@ -107,10 +107,10 @@ $status_json=array(); foreach($fields as $id22 => $arrr2) { - $t=$_POST["field_edit"][$status_id][$row["id"]][$gid][$id22]; + $t=$_POST["field_edit"][$status_id][$row["id"]][$gid][$id22] ?? ''; // if(!empty($t)) { // echo"
+ $status_id-".$row["id"]."-$gid-$id22 ====". $t; - $status_json[$gid][$row["id"]][$id22]=$t; + $status_json[$gid][$row["id"]][$id22] = $t; // } } } diff --git a/erp24/modul/shipment/shipment.php b/erp24/modul/shipment/shipment.php index 34fff22b..1df64651 100644 --- a/erp24/modul/shipment/shipment.php +++ b/erp24/modul/shipment/shipment.php @@ -4,7 +4,7 @@ include_once(dirname(__DIR__, 2) . "/inc/db.php"); include_once(dirname(__DIR__, 2) . "/inc/base_new.php"); include_once(dirname(__DIR__, 2) . "/inc/design_new.php"); -global $orderId, $act, $store_id, $ProductsOptions; +global $orderId, $act, $store_id, $ProductsOptions, $dostup_fields; $act = 'shipment';