Commit 4ecad695 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 526189: Silently ignore any attempts to add an inactive group to a bug,…

Bug 526189: Silently ignore any attempts to add an inactive group to a bug, which fixes the fact that mandatory groups were being added to bugs when changing products, even if they were inactive (not used for bugs). Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 4980d093
......@@ -2285,6 +2285,8 @@ sub add_group {
$group = new Bugzilla::Group($group) unless ref $group;
return unless $group;
return if !$group->is_active or !$group->is_bug_group;
# Make sure that bugs in this product can actually be restricted
# to this group.
grep($group->id == $_->id, @{$self->product_obj->groups_valid})
......
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