]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 526189: Silently ignore any attempts to add an inactive group to a bug, which...
authormkanat%bugzilla.org <>
Wed, 18 Nov 2009 06:31:59 +0000 (06:31 +0000)
committermkanat%bugzilla.org <>
Wed, 18 Nov 2009 06:31:59 +0000 (06:31 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Bug.pm

index 8dfe9fbf8d7f56a3fc4d8bc9511e3565ac510ff9..11471267d2d609c831c4688c7075ff05ef23ad89 100644 (file)
@@ -2297,6 +2297,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})