Commit d6a99db8 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 306364: SQL crash when moving a bug to another product (regression) - Patch…

Bug 306364: SQL crash when moving a bug to another product (regression) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
parent b93b2208
...@@ -1649,7 +1649,7 @@ foreach my $id (@idlist) { ...@@ -1649,7 +1649,7 @@ foreach my $id (@idlist) {
# - Is the bug in this group? # - Is the bug in this group?
SendSQL("SELECT DISTINCT groups.id, isactive, " . SendSQL("SELECT DISTINCT groups.id, isactive, " .
"oldcontrolmap.membercontrol, newcontrolmap.membercontrol, " . "oldcontrolmap.membercontrol, newcontrolmap.membercontrol, " .
"CASE WHEN groups_id IN ($grouplist) THEN 1 ELSE 0 END, " . "CASE WHEN groups.id IN ($grouplist) THEN 1 ELSE 0 END, " .
"bug_group_map.group_id IS NOT NULL " . "bug_group_map.group_id IS NOT NULL " .
"FROM groups " . "FROM groups " .
"LEFT JOIN group_control_map AS oldcontrolmap " . "LEFT JOIN group_control_map AS oldcontrolmap " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment