From 7aaff4409b1be346fea649845df094c9f473dca4 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 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/class/anc_key.class.php b/include/class/anc_key.class.php index ab5c22bc4..a36dcbe5d 100644 --- a/include/class/anc_key.class.php +++ b/include/class/anc_key.class.php @@ -312,7 +312,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 08f3873e0..10d7d8948 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -9,7 +9,8 @@ * @brief show the common parts of operation details * * 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__);