diff --git a/CHANGELOG.md b/CHANGELOG.md index efff0251..25b26caf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog + +## [Unreleased] + +- #225 : un input avec une valeur 0 (ou '0') affichait une chaine vide : saisies_utf8_restaurer_planes() ne retourne plus une chaine vide + ## [4.5.1] - 2022-09-14 ### Fix diff --git a/saisies_fonctions.php b/saisies_fonctions.php index f14d412f..c00b211e 100644 --- a/saisies_fonctions.php +++ b/saisies_fonctions.php @@ -307,7 +307,7 @@ function saisies_picker_preselect_objet($valeur, $objet) { **/ function saisies_utf8_restaurer_planes(?string $x): string { if (!$x) { - return ''; + return $x; } preg_match_all('/&(amp;)?#(\d+);/U', $x, $matches, PREG_SET_ORDER); foreach ($matches as $m) {