Many fixes
This commit is contained in:
@@ -74,7 +74,7 @@ class DealsController extends BaseController
|
||||
'amount' => [
|
||||
'label' => 'Сумма',
|
||||
'width' => '15%',
|
||||
'align' => 'text-end',
|
||||
|
||||
],
|
||||
'client_name' => [
|
||||
'label' => 'Клиент',
|
||||
@@ -401,7 +401,14 @@ class DealsController extends BaseController
|
||||
|
||||
$result = $this->dealService->changeStage($dealId, $newStageId, $userId);
|
||||
|
||||
return $this->response->setJSON(['success' => $result]);
|
||||
// Получаем новый CSRF токен для клиента
|
||||
$csrfToken = csrf_hash();
|
||||
$csrfHash = csrf_token();
|
||||
|
||||
return $this->response
|
||||
->setHeader('X-CSRF-TOKEN', $csrfToken)
|
||||
->setHeader('X-CSRF-HASH', $csrfHash)
|
||||
->setJSON(['success' => $result]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user