From 339caacb6949e3954faa7705d15fa3e7dafb2195 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 19 Nov 2025 11:27:59 +0100 Subject: [PATCH] Fix Bug : choice a key in anc --- include/class/anc_key.class.php | 2 +- include/template/ledger_detail_bottom.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class/anc_key.class.php b/include/class/anc_key.class.php index 16173a841..e8ece7087 100644 --- a/include/class/anc_key.class.php +++ b/include/class/anc_key.class.php @@ -319,7 +319,7 @@ class Anc_Key { global $cn; /* number is the index of the plan, he's computed from p_target */ - $number=preg_replace('/det[0-9]/', '', $p_target); + $number=preg_replace('/det[0-9]*/', '', $p_target); $number=noalyss_str_replace('t', '', $number); $number=noalyss_str_replace('popup', '', $number); diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php index cdea88b46..8a5254541 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -10,6 +10,7 @@ * * Variables : $div = popup or box (det[0-9] *@var $obj = Acc_Operation + *@var $str_anc = HTML for analytic */ bcscale(2); \Noalyss\Dbg::echo_file(__FILE__);