From d057a75773a7454a88854efcca5b8d9ceb2515d7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 9 Oct 2007 15:42:02 +0000 Subject: [PATCH] =?utf8?q?Bug=20398986:=20Incorrect=20SQL=20query=20when?= =?utf8?q?=20moving=20bugs=20to=20another=20product=20-=20Patch=20by=20Fr?= =?utf8?q?=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r?= =?utf8?q?=3Dmkanat=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index c394ea8a81..e318537a56 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 -- 2.47.3