From c7be0a773b0b6298e8d1314d0d089e5f9c6c9f56 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Thu, 18 Apr 2024 18:26:25 +0300 Subject: [PATCH] =?utf8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20=D0=B0=D0=B2=D1=82=D0=BE=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7?= =?utf8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/ShipmentController.php | 2 +- erp24/modul/shipment/divisionStore.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erp24/controllers/ShipmentController.php b/erp24/controllers/ShipmentController.php index fb9d0692..1b0fe7ae 100755 --- a/erp24/controllers/ShipmentController.php +++ b/erp24/controllers/ShipmentController.php @@ -19,5 +19,5 @@ class ShipmentController extends Controller public function actionDivisionStore() { return $this->render('division-store'); } public function actionDivisionStorePrint() { return $this->render('division-store-print'); } public function actionStoreOrderScore() { return $this->render('store-order-score'); } - public function actionAjaxDivisionAutoHandStart() { return $this->render('ajax-division-auto-hand-start'); } + public function actionAjaxDivisionAutoHandStart() { return $this->renderPartial('ajax-division-auto-hand-start'); } } \ No newline at end of file diff --git a/erp24/modul/shipment/divisionStore.php b/erp24/modul/shipment/divisionStore.php index 9457b522..d292d398 100644 --- a/erp24/modul/shipment/divisionStore.php +++ b/erp24/modul/shipment/divisionStore.php @@ -407,11 +407,14 @@ jQuery('#modal-7').modal('show', {backdrop: 'static'}); $('#modal-7 .modal-title function ajaxDivisionAutoHandStart(product_id){ $('#modal-7 .modal-body').html('Считаем данные'); jQuery('#modal-7').modal('show', {backdrop: 'static'}); $('#modal-7 .modal-title').text('Обновляем данные для авто-добавки деления'); + + const param3 = $('meta[name=csrf-param]').attr('content'); + const token3 = $('meta[name=csrf-token]').attr('content'); $.ajax({ - url: '/shipment/ajaxDivisionAutoHandStart/', + url: '/shipment/ajax-division-auto-hand-start/', method: 'post', dataType: 'html', - data: { id: $orderId, product_id: product_id}, + data: { id: $orderId, product_id: product_id, [param3]:token3}, success: function(data){ $('#modal-7 .modal-body').html(data); -- 2.39.5