Alexander Nicolaysen Sørnes : bugs: Fix isDuplicate() behaviour when the buglink is in the DB
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Oct 11 13:17:00 CDT 2009
Module: appdb
Branch: master
Commit: 496b46031236e40c8dacec4ec092ae02cb9c8a26
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=496b46031236e40c8dacec4ec092ae02cb9c8a26
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Sun Oct 11 20:15:57 2009 +0200
bugs: Fix isDuplicate() behaviour when the buglink is in the DB
---
include/bugs.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/bugs.php b/include/bugs.php
index 4318c46..0a6d099 100644
--- a/include/bugs.php
+++ b/include/bugs.php
@@ -205,8 +205,8 @@ class Bug
$sQuery = "SELECT COUNT(linkId) as count
FROM buglinks
WHERE versionId = '?'
- AND bug_id = '?'";
- if($hResult = query_parameters($sQuery, $this->iVersionId, $this->iBug_id))
+ AND bug_id = '?' AND linkId != '?'";
+ if($hResult = query_parameters($sQuery, $this->iVersionId, $this->iBug_id, $this->iLinkId))
{
if(($oRow = query_fetch_object($hResult)))
{
More information about the wine-cvs
mailing list