From 5fb6586aa7e515505e34764a6a726acb48f2d778 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 1 Jul 2024 20:56:43 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=20011?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/modul/shipment/config.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/erp24/modul/shipment/config.php b/erp24/modul/shipment/config.php index 57dba381..ab23f4f9 100644 --- a/erp24/modul/shipment/config.php +++ b/erp24/modul/shipment/config.php @@ -106,17 +106,17 @@ $status_json=array(); foreach($statuses_groups[$status_id] as $gid) { - foreach($fields as $id22 => $arrr2) { + foreach($fields as $id22 => $arrr2) { $t=$_POST["field_edit"][$status_id][$row["id"]][$gid][$id22] ?? ''; // if(!empty($t)) { - // echo"
+ $status_id-".$row["id"]."-$gid-$id22 ====". $t; + // echo"
+ $status_id-".$row["id"]."-$gid-$id22 ====". $t; $status_json[$gid][$row["id"]][$id22] = $t; // } } } } $db::sql("UPDATE store_orders_statuses SET dostup=?,groups=?, stores_show=? WHERE id=?",[json_encode($status_json,JSON_UNESCAPED_UNICODE), $groups_sql, $stores_show, $status_id ]); - +$xxx = json_encode($status_json,JSON_UNESCAPED_UNICODE); //echo"
$status_id $status_json"; } @@ -127,12 +127,16 @@ $data3=$db::getRows("SELECT * FROM store_orders_statuses WHERE posit>0 order by foreach($data3 as $row) { $store_orders_statuses[$row["id"]]=$row["name"]; $statuses_groups[$row["id"]]=explode(",",$row["groups"]); -$statuses_dostup[$row["id"]]=json_decode($row["dostup"],true,512,JSON_UNESCAPED_UNICODE); +$statuses_dostup[$row["id"]]=json_decode($row["dostup"],true,512,JSON_UNESCAPED_UNICODE); +if ($row['id'] == 5) { + $yyy = $row["dostup"]; +} $statuses_stores_show[$row["id"]]=$row["stores_show"]; } } +echo strcmp($xxx, $yyy); ///////// $data=$db::getRows("SELECT id,fields_sort,fields_hide FROM store_orders_statuses WHERE posit>0 "); -- 2.39.5