phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r668 - tag/rel671/rapport_avance/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r668 - tag/rel671/rapport_avance/include
Date: Sun, 12 Jan 2014 21:12:43 +0100 (CET)

Author: danydb
Date: 2014-01-12 21:12:42 +0100 (Sun, 12 Jan 2014)
New Revision: 668

Modified:
   tag/rel671/rapport_avance/include/class_rapav_listing_formula.php
Log:
Bug attribut

Modified: tag/rel671/rapport_avance/include/class_rapav_listing_formula.php
===================================================================
--- tag/rel671/rapport_avance/include/class_rapav_listing_formula.php   
2014-01-12 19:41:24 UTC (rev 667)
+++ tag/rel671/rapport_avance/include/class_rapav_listing_formula.php   
2014-01-12 20:12:42 UTC (rev 668)
@@ -209,7 +209,9 @@
     function display()
     {
         global $cn;
-        $desc = $cn->get_value('select ad_text from attr_def where ad_id=$1', 
array($this->data->getp('attribut_card')));
+        $desc = $cn->get_value('select ad_text from attr_def 
+                 where ad_id=$1', array($this->data->getp('attribut_card')));
+        
         return "Utilisant l'attribut " . h($desc);
     }
 
@@ -239,13 +241,18 @@
     function input()
     {
         global $cn;
+        $this->cat = $cn->get_value('select fd_id 
+                    from rapport_advanced.listing 
+                    where
+                    l_id=$1
+                    ', array($this->data->getp('listing_id')));
         $select = new ISelect('p_attribute');
 
         $select->value = $cn->make_array('select a.ad_id,a.ad_text 
                                         from
                                         attr_def as a join jnt_fic_attr as j 
on (a.ad_id=j.ad_id)
                                         where
-                                        fd_id=' . 
$this->data->getp('listing_id') . ' order by 2');
+                                        fd_id=' .$this->cat . ' order by 
a.ad_text ');
 
         $select->selected = $this->data->getp('attribut_card');
         return "Attribut à afficher pour chaque fiche " . $select->input();



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

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