diff options
author | lpsolit%gmail.com <> | 2005-10-12 11:27:06 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-12 11:27:06 +0200 |
commit | 5eee7ab7fb527d926bfdf5927268862048cd4479 (patch) | |
tree | 8aa406ea2915388bcd92f36f914b290d22e91fd0 /Bugzilla | |
parent | 2ecd676f8e8154f6364a3a158013250695ed9251 (diff) | |
download | bugzilla-5eee7ab7fb527d926bfdf5927268862048cd4479.tar.gz bugzilla-5eee7ab7fb527d926bfdf5927268862048cd4479.tar.xz |
Bug 311419: Update the group_controls method from Product.pm to use Group.pm - Patch by André Batosti <batosti@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Product.pm | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index c6dd698b6..94547476f 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -129,12 +129,6 @@ sub group_controls { if (!defined $self->{group_controls}) { my $query = qq{SELECT groups.id, - groups.name, - groups.description, - groups.isbuggroup, - groups.last_changed, - groups.userregexp, - groups.isactive, group_control_map.entry, group_control_map.membercontrol, group_control_map.othercontrol, @@ -145,8 +139,12 @@ sub group_controls { WHERE group_control_map.product_id = ? AND groups.isbuggroup != 0 ORDER BY groups.name}; - my $self->{group_controls} = + $self->{group_controls} = $dbh->selectall_hashref($query, 'id', undef, $self->id); + foreach my $group (keys(%{$self->{group_controls}})) { + $self->{group_controls}->{$group}->{'group'} = + new Bugzilla::Group($group); + } } return $self->{group_controls}; } @@ -354,8 +352,9 @@ Product.pm represents a product object. Params: none. - Returns: A hash with group id as key and hash containing the - group data as value. + Returns: A hash with group id as key and hash containing + a Bugzilla::Group object and the properties of group + relative to the product. =item C<versions()> |