From 3ebf812b9a5378b6920b04604273aaf9b5df6ac7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 31 Oct 2006 07:49:48 +0000 Subject: Bug 357374: Can't locate object method "use_for" via package "Bugzilla::Group" - Patch by Frédéric Buclin r=kiko a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Group.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Group.pm') diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index 69c3f51de..0f7771efe 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -71,6 +71,11 @@ sub is_active { return $_[0]->{'isactive'}; } #### Methods #### ############################### +sub is_active_bug_group { + my $self = shift; + return $self->is_active && $self->is_bug_group; +} + sub _rederive_regexp { my ($self) = @_; RederiveRegexp($self->user_regexp, $self->id); @@ -206,6 +211,7 @@ Bugzilla::Group - Bugzilla group class. my $description = $group->description; my $user_reg_exp = $group->user_reg_exp; my $is_active = $group->is_active; + my $is_active_bug_group = $group->is_active_bug_group; my $group_id = Bugzilla::Group::ValidateGroupName('admin', @users); my @groups = Bugzilla::Group->get_all; -- cgit v1.2.3-24-g4f1b