summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-07-16 06:41:58 +0200
committermkanat%bugzilla.org <>2007-07-16 06:41:58 +0200
commite75c47801129f9f2639787302489fedb3aa78465 (patch)
tree583307d7793f6c85c1bcb50b65dac57c2533191b /Bugzilla
parent11f84871412d696a1dc449d7d98bba5a0889dafa (diff)
downloadbugzilla-e75c47801129f9f2639787302489fedb3aa78465.tar.gz
bugzilla-e75c47801129f9f2639787302489fedb3aa78465.tar.xz
Bug 388232: Restricting a bug to a group sets reporter_accessible and cc_accessible to 0
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index ad9146504..ec2fd491a 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1753,6 +1753,17 @@ sub groups {
return $self->{'groups'};
}
+sub groups_in {
+ my $self = shift;
+ return $self->{'groups_in'} if exists $self->{'groups_in'};
+ return [] if $self->{'error'};
+ my $group_ids = Bugzilla->dbh->selectcol_arrayref(
+ 'SELECT group_id FROM bug_group_map WHERE bug_id = ?',
+ undef, $self->id);
+ $self->{'groups_in'} = Bugzilla::Group->new_from_list($group_ids);
+ return $self->{'groups_in'};
+}
+
sub user {
my $self = shift;
return $self->{'user'} if exists $self->{'user'};