]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix shipment polnogram php ini
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 20 Dec 2023 10:18:12 +0000 (13:18 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 20 Dec 2023 10:18:12 +0000 (13:18 +0300)
docker/php/conf/php.ini
erp24/views/shipment/polnogramm.php

index 318993220f06e5cb3ffe7d7cbbcbf2a579962a89..3522b88e64ba1069b6df0f369bf08bc5c7feb10f 100644 (file)
@@ -6,6 +6,7 @@ log_errors = On
 max_input_time = 60
 short_open_tag = On
 date.timezone = Europe/Moscow
+max_input_vars = 10000
 
 [xdebug]
 xdebug.start_with_request=yes
index 6d4b755ec219117bbd1858943a6989f030df2089..99dfbcbf8f79bfab4cb54bb04cbe3815d5622fa4 100644 (file)
@@ -125,7 +125,7 @@ store_id='$store_id' AND product_id='$prod_id'  order by date_id DESC LIMIT 12")
 
 
 
-            foreach($_POST["quantity__color"][$prod_id] as $color => $quan) {
+            foreach($_POST["quantity__color"][$prod_id] ?? [] as $color => $quan) {
                 $color=trim($color);
                 $quan=(int)$quan;
                 if(!empty($color)) {
@@ -146,7 +146,7 @@ store_id='$store_id' AND product_id='$prod_id'  order by date_id DESC LIMIT 12")
             }
 
 
-            foreach($_POST["quantity_max__color_max"][$prod_id] as $color => $quan) {
+            foreach($_POST["quantity_max__color_max"][$prod_id] ?? [] as $color => $quan) {
                 $color=trim($color);
                 $quan=(int)$quan;
                 if(!empty($color)) {
@@ -168,7 +168,7 @@ store_id='$store_id' AND product_id='$prod_id'  order by date_id DESC LIMIT 12")
 
 echo'<div class="table-responsive mt-3">';
 
-if($save==1) echo'<form method=post>';
+if($save==1) echo'<form method=post>' . '<input type="hidden" name="_csrf" value="' . Yii::$app->request->getCsrfToken() .'" />';
 
 echo'
 <table  class="table table-sm table-hover border-top text-nowrap"><thead>';