Commit ac99ed7d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 449248: Improve $product->group_controls - Patch by Fré©ric Buclin…

Bug 449248: Improve $product->group_controls - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 202409b6
......@@ -509,10 +509,11 @@ sub group_controls {
ORDER BY groups.name};
$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);
}
# For each group ID listed above, create and store its group object.
my @gids = keys %{$self->{group_controls}};
my $groups = Bugzilla::Group->new_from_list(\@gids);
$self->{group_controls}->{$_->id}->{group} = $_ foreach @$groups;
}
return $self->{group_controls};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment