From 6671c7c38ec72401d531283b39f61867965433b0 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 14 Sep 2007 23:37:10 -0400 Subject: [PATCH] =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let objectManager add bug links. --- appview.php | 8 -------- include/bugs.php | 8 ++++++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/appview.php b/appview.php index f332ee3..601fc11 100644 --- a/appview.php +++ b/appview.php @@ -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()); - } } /** diff --git a/include/bugs.php b/include/bugs.php index 81ec1db..7b44519 100644 --- a/include/bugs.php +++ b/include/bugs.php @@ -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 "
\n"; + echo "\n"; } echo html_frame_start("Known bugs","98%",'',0); echo "\n\n"; @@ -585,6 +586,9 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds) echo '',"\n"; + echo '',"\n"; + echo '',"\n"; + echo '',"\n"; echo '',"\n"; echo '',"\n"; }
',"\n"; $sBuglinkId = isset($aClean['buglinkId']) ? $aClean['buglinkId'] : ''; echo '