From a6d2f6c7219f3e24d11343814a567c9a789e171d Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 28 Jan 2025 10:32:19 +0300 Subject: [PATCH] =?utf8?q?ERP-282=20=D0=9D=D1=83=D0=B6=D0=BD=D0=BE=20?= =?utf8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D0=B8=D0=BD=D1=82?= =?utf8?q?=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20=D0=BD=D0=B0=D1=81=D1=82?= =?utf8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BC=D0=B0=D0=B3=D0=B0=D0=B7?= =?utf8?q?=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/web/js/city-store-params/city-store-params.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erp24/web/js/city-store-params/city-store-params.js b/erp24/web/js/city-store-params/city-store-params.js index 9d253518..fe9089e0 100644 --- a/erp24/web/js/city-store-params/city-store-params.js +++ b/erp24/web/js/city-store-params/city-store-params.js @@ -1,7 +1,7 @@ function sendData() { $.ajax({ url: '/city-store-params/edit', - type: 'GET', + type: 'POST', data: { address_city: $('#address_city').val(), address_region: $('#address_region').val(), @@ -10,6 +10,9 @@ function sendData() { territorial_manager: $('#territorial_manager').val(), bush_chef_florist: $('#bush_chef_florist').val(), }, + headers: { + 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content') + }, success: function (response) { if (response?.success) { $('#selected-store').html(Object.entries(response.data).map(([key, value]) => -- 2.39.5