]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 232554: fix SQL queries in Flag.pm in order to fix a bug that causes...
authorjocuri%softhome.net <>
Thu, 1 Apr 2004 16:57:59 +0000 (16:57 +0000)
committerjocuri%softhome.net <>
Thu, 1 Apr 2004 16:57:59 +0000 (16:57 +0000)
Bugzilla/Flag.pm

index 8c9a4befe2bc5bdc2e2af4595df3ab58863c6074..3272b840917934e289d418bcc48795219c40c350 100644 (file)
@@ -248,14 +248,14 @@ sub process {
             ON (flags.type_id = i.type_id 
             AND (bugs.product_id = i.product_id OR i.product_id IS NULL)
             AND (bugs.component_id = i.component_id OR i.component_id IS NULL))
-        WHERE flags.type_id = $target->{'bug'}->{'id'} 
+        WHERE bugs.bug_id = $target->{'bug'}->{'id'} 
         AND i.type_id IS NULL
     ");
     clear(&::FetchOneColumn()) while &::MoreSQLData();
     &::SendSQL("
         SELECT flags.id 
         FROM flags, bugs, flagexclusions e
-        WHERE flags.type_id = $target->{'bug'}->{'id'}
+        WHERE bugs.bug_id = $target->{'bug'}->{'id'}
         AND flags.bug_id = bugs.bug_id
         AND flags.type_id = e.type_id 
         AND (bugs.product_id = e.product_id OR e.product_id IS NULL)