Browse Source

FIX Missing token in ajax call

Laurent Destailleur 2 years ago
parent
commit
67e8851a4e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      htdocs/compta/paiement.php
  2. 1 1
      htdocs/fourn/facture/paiement.php

+ 1 - 1
htdocs/compta/paiement.php

@@ -414,7 +414,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
             				json["amountPayment"] = $("#amountpayment").attr("value");
 							json["amounts"] = _elemToJson(form.find("input.amount"));
 							json["remains"] = _elemToJson(form.find("input.remain"));
-
+							json["token"] = "'.currentToken().'";
 							if (imgId != null) {
 								json["imgClicked"] = imgId;
 							}

+ 1 - 1
htdocs/fourn/facture/paiement.php

@@ -431,7 +431,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
             				json["amountPayment"] = $("#amountpayment").attr("value");
 							json["amounts"] = _elemToJson(form.find("input.amount"));
 							json["remains"] = _elemToJson(form.find("input.remain"));
-
+							json["token"] = "'.currentToken().'";
 							if (imgId != null) {
 								json["imgClicked"] = imgId;
 							}