feat: on essaye encode en json en tenant compte du typage

This commit is contained in:
Christophe 2024-06-04 22:29:39 +02:00
parent 6aa97ce5d2
commit 77683e27a5
2 changed files with 1 additions and 7 deletions

View file

@ -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

View file

@ -67,7 +67,7 @@
"id": #GET{ligne/id},
"edit": "",
<BOUCLE_champsB(DATA){source table,#GET{champs}}>
[(#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})],
</BOUCLE_champsB>
"sup":""
}