Hello,

dropdown qui affiche les associations pour les taches ne délivre qu'un seul élément de chaque type.

Voila le patch

@+
--- 
../../../../orig/plugins/projet/trunk/inc/plugin_projet.functions_dropdown.php  
    2008-08-30 14:16:07.000000000 +0200
+++ plugin_projet.functions_dropdown.php        2008-09-01 20:41:51.000000000 
+0200
@@ -551,7 +551,7 @@
                        $result_linked=$DB->query($query1);             
                        if ($DB->numrows($result_linked)){
 
-                               if ($data1=$DB->fetch_assoc($result_linked)){
+                               while ($data1=$DB->fetch_assoc($result_linked)){
 
                                        echo "<option 
value='".$data1["ID"].",".$type."'>".$data1["name"];
                                        if (empty($data1["name"]) || 
$CFG_GLPI["view_ID"] == 1 ){ 
@@ -583,7 +583,7 @@
 
                        if ($DB->numrows($result3)){
 
-                               if ($data3=$DB->fetch_assoc($result3)){
+                               while ($data3=$DB->fetch_assoc($result3)){
 
                                        echo "<option 
value='".$data3["ID"].",".DOCUMENT_TYPE."'>".$data3["name"];
                                        if (empty($data3["name"]) || 
$CFG_GLPI["view_ID"] == 1 ){ 
@@ -615,7 +615,7 @@
 
                        if ($DB->numrows($result5)){
 
-                               if ($data5=$DB->fetch_assoc($result5)){
+                               while ($data5=$DB->fetch_assoc($result5)){
 
                                        echo "<option 
value='".$data5["ID"].",".CONTRACT_TYPE."'>".$data5["name"];
                                        if (empty($data5["name"]) || 
$CFG_GLPI["view_ID"] == 1 ){ 
@@ -824,4 +824,4 @@
        echo "</div>";
 }
 
-?>
\ Pas de fin de ligne à la fin du fichier.
+?>
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to