bug: Let objectManager unqueue bug links
This commit is contained in:
committed by
Chris Morgan
parent
74cf6afeb2
commit
43e3e6bebc
25
appview.php
25
appview.php
@@ -69,31 +69,6 @@ function display_bundle($iAppId)
|
|||||||
echo html_frame_end();
|
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).
|
* We want to see an application family (=no version).
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -566,7 +566,7 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
|
|||||||
echo "<td align=center>[<a href='objectManager.php?sClass=bug&iId=".$oBuglink->iLinkId."&sAction=delete&sSubmit=Delete&sReturnTo=".$oVersion->objectMakeUrl()."'>delete</a>]</td>\n";
|
echo "<td align=center>[<a href='objectManager.php?sClass=bug&iId=".$oBuglink->iLinkId."&sAction=delete&sSubmit=Delete&sReturnTo=".$oVersion->objectMakeUrl()."'>delete</a>]</td>\n";
|
||||||
if ($oBuglink->bQueued)
|
if ($oBuglink->bQueued)
|
||||||
{
|
{
|
||||||
echo "<td align=center>[<a href='".$oVersion->objectMakeUrl()."&sSub=unqueue&iBuglinkId=".$oBuglink->iLinkId."'>OK</a>]</td>\n";
|
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";
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
echo "<td align=center>Yes</td>\n";
|
echo "<td align=center>Yes</td>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user