From 9b4bb81aec9a6b3c67530099dda0d9e41c59b278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Mon, 23 Apr 2007 23:37:30 +0000 Subject: [PATCH] Fix bug link creation email. We only need to fetch the link id so remove the other code that was resulting in missing values. --- include/bugs.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/include/bugs.php b/include/bugs.php index 9a46f84..17e4738 100644 --- a/include/bugs.php +++ b/include/bugs.php @@ -127,23 +127,10 @@ class Bug { $_SESSION['current']->iUserId); if($hResult) { - /* The following should work but it does not! */ $this->iLinkId = mysql_insert_id(); - $this->bug($this->iLinkId); - /* Start of hack to get around the previous not working */ - $sQuery = "SELECT buglinks.*, appVersion.appId AS appId - FROM buglinks, appVersion - WHERE buglinks.versionId = appVersion.versionId - AND buglinks.versionId = '?' - AND buglinks.bug_id = '?'"; - if($hResult = query_parameters($sQuery, $this->iVersionId, $this->iBug_id)) - { - $oRow = mysql_fetch_object($hResult); - $this->bug($oRow->linkId); - } - /*End of Hack */ $this->SendNotificationMail(); + return true; } else {