diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index efdb032081f..31ed089c476 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -413,7 +413,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 832e93ff026..0469b3d1c09 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -430,7 +430,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; }