From: Alexander Smirnov Date: Mon, 1 Jul 2024 17:56:43 +0000 (+0300) Subject: Дебаг 011 X-Git-Tag: 1.3~29^2~10 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5fb6586aa7e515505e34764a6a726acb48f2d778;p=erp24_rep%2Fyii-erp24%2F.git Дебаг 011 --- 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 ");