From 77683e27a59ed7716f72862d1dcd3adc126ba0c6 Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 4 Jun 2024 22:29:39 +0200 Subject: [PATCH] feat: on essaye encode en json en tenant compte du typage --- gamuform_fonctions.php | 6 ------ json_gamuform.json.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gamuform_fonctions.php b/gamuform_fonctions.php index 6038375..686c18f 100644 --- a/gamuform_fonctions.php +++ b/gamuform_fonctions.php @@ -67,12 +67,6 @@ function gamufiltre($objet, $champ, $ligne, $integer = false) { return $valeur; } -function gamuTextebrut($v) { - if (is_integer($v)) { - return $v; - } - return trim(textebrut($v)); -} /** * recuperation du tableau des saisies d'un objet diff --git a/json_gamuform.json.html b/json_gamuform.json.html index 7221a86..3335bee 100644 --- a/json_gamuform.json.html +++ b/json_gamuform.json.html @@ -67,7 +67,7 @@ "id": #GET{ligne/id}, "edit": "", - [(#VALEUR|json_encode)] : [(#ENV{objet}|gamufiltre{#VALEUR,#GET{ligne},integer}|gamuTextebrut|json_encode)], + [(#VALEUR|json_encode)] : [(#ENV{objet}|gamufiltre{#VALEUR,#GET{ligne},integer}|json_encode{32})], "sup":"" }