From: lpsolit%gmail.com <> Date: Tue, 9 Oct 2007 15:42:02 +0000 (+0000) Subject: Bug 398986: Incorrect SQL query when moving bugs to another product - Patch by FrÃ... X-Git-Tag: bugzilla-3.1.3~509 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d057a75773a7454a88854efcca5b8d9ceb2515d7;p=thirdparty%2Fbugzilla.git Bug 398986: Incorrect SQL query when moving bugs to another product - Patch by Frédéric Buclin r=mkanat a=LpSolit --- 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