noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 05/10: Task #1077 - Clef renvoit incorrect Pr


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 05/10: Task #1077 - Clef renvoit incorrect Problem comes from Anc_Key->fill_table : target for hplan was not properly computed from the target, since the target contains the DIV id
Date: Tue, 30 Dec 2014 10:31:30 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6eb3598e5b0475b050d5a417611e06e15453a75e
Author: Dany De Bontridder <address@hidden>
Date:   Wed Dec 24 12:52:07 2014 +0100

    Task #1077 - Clef renvoit incorrect
    Problem comes from Anc_Key->fill_table : target for hplan was not properly 
computed from the target, since the target contains the DIV id
---
 include/class_anc_key.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/class_anc_key.php b/include/class_anc_key.php
index 8f1ab0d..1bada74 100644
--- a/include/class_anc_key.php
+++ b/include/class_anc_key.php
@@ -281,7 +281,9 @@ class Anc_Key
     function fill_table($p_target,$p_amount)
     {
         global $cn;
-        $number=str_replace('t', '', $p_target);
+        /* number is the index of the plan, he's computed from p_target */
+        $number=preg_replace('/det[0-9]/', '', $p_target);
+        $number=str_replace('t', '', $number);
         $number=str_replace('popup', '', $number);
         
         $op[$number]=$p_amount;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]