Fix bug link creation email. We only need to fetch the link id so remove the other code that

was resulting in missing values.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-23 23:37:30 +00:00
committed by WineHQ
parent fa050164f7
commit 9b4bb81aec

View File

@@ -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
{