Alexander Nicolaysen Sørnes <alex@thehandofagony.com>

Let objectManager add bug links.
This commit is contained in:
Chris Morgan
2007-09-14 23:37:10 -04:00
parent b2cc871f09
commit 6671c7c38e
2 changed files with 6 additions and 10 deletions

View File

@@ -104,14 +104,6 @@ if (isset($aClean['sSub']))
}
}
if(($aClean['sSub'] == 'Submit a new bug link.' ) && ($aClean['iBuglinkId']))
{
$oBuglink = new Bug();
$oBuglink->iVersionId = $aClean['iVersionId'];
$oBuglink->iBug_id = $aClean['iBuglinkId'];
$oBuglink->create();
util_redirect_and_exit($oVersion->objectMakeUrl());
}
}
/**

View File

@@ -492,7 +492,8 @@ class Bug
function getOutputEditorValues($aClean)
{
$this->iTestingId = $aValues['iBugLinkId'];
$this->iBug_id = $aClean['iBuglinkId'];
$this->iVersionId = $aClean['iVersionId'];
}
}
@@ -519,7 +520,7 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
//start format table
if($_SESSION['current']->isLoggedIn())
{
echo "<form method=post action='".$oVersion->objectMakeUrl()."'>\n";
echo "<form method=post action='".APPDB_ROOT."objectManager.php'>\n";
}
echo html_frame_start("Known bugs","98%",'',0);
echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\">\n\n";
@@ -585,6 +586,9 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
echo '<tr class=color3><td align=center>',"\n";
$sBuglinkId = isset($aClean['buglinkId']) ? $aClean['buglinkId'] : '';
echo '<input type="text" name="iBuglinkId" value="'.$sBuglinkId.'" size="8"></td>',"\n";
echo '<input type="hidden" name="sSubmit" value="Submit" />',"\n";
echo '<input type="hidden" name="sClass" value="bug" />',"\n";
echo '<input type="hidden" name="sReturnTo" value="'.$oVersion->objectMakeUrl().'" />',"\n";
echo '<td><input type="submit" name="sSub" value="Submit a new bug link."></td>',"\n";
echo '<td colspan=6></td></tr></form>',"\n";
}