From d057a75773a7454a88854efcca5b8d9ceb2515d7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 9 Oct 2007 15:42:02 +0000 Subject: Bug 398986: Incorrect SQL query when moving bugs to another product - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index c394ea8a8..e318537a5 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1421,7 +1421,7 @@ sub set_product { my $gids = $dbh->selectcol_arrayref( 'SELECT bgm.group_id FROM bug_group_map AS bgm - WHERE bgm.bug_id IN (' . join(',', ('?' x @idlist)) . ') + WHERE bgm.bug_id IN (' . join(',', ('?') x @idlist) . ') AND bgm.group_id NOT IN (SELECT gcm.group_id FROM group_control_map AS gcm -- cgit v1.2.3-24-g4f1b