diff options
-rw-r--r-- | Bugzilla/Bug.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 107b3f6af..9af8b1e8c 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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}) |