From 43e3e6bebccb1ac391f464646ee6799324e08032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Mon, 17 Sep 2007 20:57:14 +0200 Subject: [PATCH] bug: Let objectManager unqueue bug links --- appview.php | 25 ------------------------- include/bugs.php | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/appview.php b/appview.php index ebf028b..b0731d0 100644 --- a/appview.php +++ b/appview.php @@ -69,31 +69,6 @@ function display_bundle($iAppId) echo html_frame_end(); } -// if both iAppId and iVersionId are empty we have a problem -if(empty($aClean['iAppId']) && empty($aClean['iVersionId'])) - util_show_error_page_and_exit("Something went wrong with the application or version id"); - -if (isset($aClean['sSub'])) -{ - // create the version object if iVersionId is set - // we use this version object in many of the below cases - if(isset($aClean['iVersionId'])) - $oVersion = new Version($aClean['iVersionId']); - - if(($aClean['sSub'] == 'unqueue' ) && ($aClean['iBuglinkId'])) - { - if(($_SESSION['current']->hasPriv("admin") || - $_SESSION['current']->isMaintainer($oVersion->iVersionId) || - $_SESSION['current']->isSuperMaintainer($oVersion->iAppId))) - { - $oBuglink = new Bug($aClean['iBuglinkId']); - $oBuglink->unqueue(); - util_redirect_and_exit($oVersion->objectMakeUrl()); - } - - } -} - /** * We want to see an application family (=no version). */ diff --git a/include/bugs.php b/include/bugs.php index a68129d..4f12624 100644 --- a/include/bugs.php +++ b/include/bugs.php @@ -566,7 +566,7 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds) echo "[delete]\n"; if ($oBuglink->bQueued) { - echo "[OK]\n"; + echo "[OK]\n"; } else { echo "Yes\n";