You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-07-21 16:36:42

dagar
Member
Registered: 2006-12-11
Posts: 82

Project patch

I noticed from the central console when trying to click on one of the tasks that the link is bad.
I created a simple patch to fix that.

--- plugin_projet.display.function.php.old    2009-06-14 08:04:18.000000000 -0500
+++ plugin_projet.display.function.php    2009-07-21 09:22:02.000000000 -0500
@@ -740,7 +740,7 @@
        $result = $DB->query($query);
        $number = $DB->numrows($result);
       
-        echo "<form method='post' name='addtaskitem' action=\"./plugin_projet.task..form.php\">";
+        echo "<form method='post' name='addtaskitem' action=\"./plugin_projet.task.form.php\">";
        echo "<table class='tab_cadre_fixe'>";
        echo "<tr><th colspan='".($canedit?3:2)."'>".$LANG['document'][19].":</th></tr>";
        echo "<tr><th>".$LANG['common'][17]."</th>";
@@ -777,7 +777,7 @@
   
                        echo "<td align='center' ".(isset($data['deleted'])&&$data['deleted']=='1'?"class='tab_bg_2_2'":"").">".$name."</td>";
                        if($canedit && plugin_projet_HaveRight("task","w") && $withtemplate<2)
-                            echo "<td align='center' class='tab_bg_2'><a href='./plugin_projet.task..form.php?deletetaskitem=deletetaskitem&amp;ID=".$data["IDD"]."'>".$LANG['buttons'][6]."</a></td>";
+                            echo "<td align='center' class='tab_bg_2'><a href='./plugin_projet.task.form.php?deletetaskitem=deletetaskitem&amp;ID=".$data["IDD"]."'>".$LANG['buttons'][6]."</a></td>";
                            else echo "";
                        echo "</tr>";
                    }
@@ -870,7 +870,7 @@
        while ($data=$DB->fetch_array($result)){
           
            echo "<tr class='tab_bg_1".($data["deleted"]=='1'?"_2":"")."'>";
-            echo "<td align='center'><a href='".$CFG_GLPI["root_doc"]."/plugins/projet/front/plugin_projet.task..form.php?ID=".$data["ID_task"]."&amp;FK_projet=".$data["ID"]."&amp;central=1'>".$data["name_task"];
+            echo "<td align='center'><a href='".$CFG_GLPI["root_doc"]."/plugins/projet/front/plugin_projet.task.form.php?ID=".$data["ID_task"]."&amp;FK_projet=".$data["ID"]."&amp;central=1'>".$data["name_task"];
            if ($_SESSION["glpiview_ID"]) echo " (".$data["ID_task"].")";
            echo "</a></td>";

Offline

#2 2010-06-26 15:14:54

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Project patch

Corrected in 1.0.1 version. Thanks


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB