From 878bfd435bccc4c1f6442505651ace3198212185 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 20 Jan 2026 16:51:41 +0100 Subject: [PATCH] Fix Bug : cannot save if ANC_FILTER is empty --- include/class/noalyss_parameter_folder.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/class/noalyss_parameter_folder.class.php b/include/class/noalyss_parameter_folder.class.php index 22d7921ad..6dc26d363 100644 --- a/include/class/noalyss_parameter_folder.class.php +++ b/include/class/noalyss_parameter_folder.class.php @@ -109,6 +109,7 @@ EOF; function check_anc_filter($p_value):void { $tmp_value=$p_value; + $tmp_value=preg_replace("/[0-9]|,/", '', $p_value); if ( $tmp_value != "") { throw new Exception (sprintf(_("Valeur invalide %s"),$tmp_value),1000); @@ -167,6 +168,7 @@ EOF; function save($p_attr) { try { + if ( trim($this->MY_ANC_FILTER) == "") $this->MY_ANC_FILTER="6,7"; $value=$this->check($p_attr,$this->$p_attr); // check if the parameter does exist