From 13ec20a24ff6d60d74ecccfe235d6bf98a733b31 Mon Sep 17 00:00:00 2001 From: tofulm Date: Fri, 10 Jan 2025 14:47:03 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20app.rechargerJson(id)=20id=20peut=20etre?= =?UTF-8?q?=20un=20nombre=20n=C3=A9gatif=20afin=20de=20pouvoir=20supprimer?= =?UTF-8?q?=20la=20ligne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamutable_fonctions.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index da061c4..caa162b 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -86,15 +86,14 @@ function gamutable_generer_js($id_objet, $num){ } } else { id = parseInt(id); - if (id > 0 && id < 9999999999) { - if (typeof app$num !== 'undefined') { - app$num.rechargerJson(id); - } - } if (id === 9999999999) { if (typeof app$num !== 'undefined') { app$num.rechargerJson(); } + } else { + if (typeof app$num !== 'undefined') { + app$num.rechargerJson(id); + } } } $.modalboxclose(); @@ -131,15 +130,14 @@ function gamutable_recharger_tableau($id_objet = 9999999999, $num = null):string } } else { id = parseInt(id); - if (id > 0 && id < 9999999999) { - if (typeof app$num !== 'undefined') { - app$num.rechargerJson(id); - } - } if (id === 9999999999) { if (typeof app$num !== 'undefined') { app$num.rechargerJson(); } + } else { + if (typeof app$num !== 'undefined') { + app$num.rechargerJson(id); + } } } delete id;