feat: on essaye encode en json en tenant compte du typage
This commit is contained in:
parent
6aa97ce5d2
commit
77683e27a5
2 changed files with 1 additions and 7 deletions
|
@ -67,12 +67,6 @@ function gamufiltre($objet, $champ, $ligne, $integer = false) {
|
||||||
return $valeur;
|
return $valeur;
|
||||||
}
|
}
|
||||||
|
|
||||||
function gamuTextebrut($v) {
|
|
||||||
if (is_integer($v)) {
|
|
||||||
return $v;
|
|
||||||
}
|
|
||||||
return trim(textebrut($v));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* recuperation du tableau des saisies d'un objet
|
* recuperation du tableau des saisies d'un objet
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
"id": #GET{ligne/id},
|
"id": #GET{ligne/id},
|
||||||
"edit": "",
|
"edit": "",
|
||||||
<BOUCLE_champsB(DATA){source table,#GET{champs}}>
|
<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>
|
</BOUCLE_champsB>
|
||||||
"sup":""
|
"sup":""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue