]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
правки по автозаказу
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 18 Apr 2024 15:26:25 +0000 (18:26 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 18 Apr 2024 15:26:25 +0000 (18:26 +0300)
erp24/controllers/ShipmentController.php
erp24/modul/shipment/divisionStore.php

index fb9d0692841280899e8e5a6311760282f13795d2..1b0fe7ae141b606a731c1c304f5a7c35e642eb85 100755 (executable)
@@ -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
index 9457b522e45bc9f662f2bc5659f318bb335af11f..d292d398e36b599b72ec7cee6ad506f6fd6b108a 100644 (file)
@@ -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);