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__);