Alexander Nicolaysen Sørnes : Fix buglink deletion on version pages

Chris Morgan cmorgan at winehq.org
Thu Sep 27 08:23:13 CDT 2007


Module: appdb
Branch: master
Commit: 1e1b4a1ecea231ae8a065c5584c9c5bdba84aa74
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=1e1b4a1ecea231ae8a065c5584c9c5bdba84aa74

Author: Alexander Nicolaysen Sørnes <alexander at alex.alexstyrt>
Date:   Thu Sep 27 12:54:22 2007 +0200

Fix buglink deletion on version pages

---

 include/bugs.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/bugs.php b/include/bugs.php
index 672adb9..a7d712b 100644
--- a/include/bugs.php
+++ b/include/bugs.php
@@ -564,7 +564,9 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
             
             if($bCanEdit == true)
             {
-                echo "<td align=center>[<a href='objectManager.php?sClass=bug&iId=".$oBuglink->iLinkId."&sAction=delete&sSubmit=Delete&sReturnTo=".$oVersion->objectMakeUrl()."'>delete</a>]</td>\n";
+                $oM = new objectManager("bug");
+                $oM->sReturnTo = $oVersion->objectMakeUrl();
+                echo "<td align=center>[<a href='".$oM->makeUrl("delete", $oBuglink->iLinkId)."&sSubmit=delete'>delete</a>]</td>\n";
                 if ($oBuglink->bQueued)
                 {
                     echo "<td align=center>[<a href='objectManager.php?sClass=bug&iId=".$oBuglink->iLinkId."&sAction=edit&sSubmit=Submit&bIsQueue=true&sReturnTo=".$oVersion->objectMakeUrl()."'>OK</a>]</td>\n";




More information about the wine-cvs mailing list