From 67bb14795cd10a164fa883de3831f09f32767dd1 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 27 Mar 2021 14:57:25 +0100 Subject: [PATCH] Fix /payer --- module/rdd-utility.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 6cff6c32..41f0d635 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -539,7 +539,10 @@ export class RdDUtility { // Gestion du bouton payer html.on("click", '#payer-button', event => { let sumdenier = event.currentTarget.attributes['data-somme-denier'].value; - let quantite = event.currentTarget.attributes['data-quantite'].value; + let quantite = 1; + if ( event.currentTarget.attributes['data-quantite'] ) { + quantite = event.currentTarget.attributes['data-quantite'].value; + } let jsondata = event.currentTarget.attributes['data-jsondata'] let objData if (jsondata) {