sub user_regexp { return $_[0]->{'userregexp'}; }
sub is_active { return $_[0]->{'isactive'}; }
+###############################
+#### Methods ####
+###############################
+
+sub is_active_bug_group {
+ my $self = shift;
+ return $self->is_active && $self->is_bug_group;
+}
+
################################
##### Module Subroutines ###
################################
my $last_changed = $group->last_changed;
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::get_all_groups();
{name => 'userregexp'
heading => 'User RegExp'
}
- {name => 'use_for'
+ {name => 'is_active_bug_group'
heading => "Use For $terms.Bugs"
align => 'center'
}
]
%]
-[% overrides.use_for = [ {
+[% overrides.is_active_bug_group = [ {
match_value => "0"
- match_field => 'use_for'
+ match_field => 'is_active_bug_group'
override_content => 1
content => " "
},
{
match_value => "1"
- match_field => 'use_for'
+ match_field => 'is_active_bug_group'
override_content => 1
content => "X"
}]
}]
%]
-[% FOREACH group = groups %]
- [% group.use_for = (group.isactive != 0) && (group.isbuggroup) %]
-[% END %]
-
[% PROCESS admin/table.html.tmpl
columns = columns
data = groups