diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index dec5787302a..c51cb19ef1a 100644 --- a/htdocs/compta/paiement.php +++ b/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; } diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index bac4fd1b616..b421496153d 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/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; }