Commit 60965ea0 authored by Marc Schumann's avatar Marc Schumann

Bug 1015173: Groups report all members as being direct members.

r=gerv, a=glob
parent 9bd3f08d
...@@ -95,7 +95,8 @@ sub members_non_inherited { ...@@ -95,7 +95,8 @@ sub members_non_inherited {
sub _get_members { sub _get_members {
my ($self, $grant_type) = @_; my ($self, $grant_type) = @_;
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
my $grant_clause = $grant_type ? "AND grant_type = $grant_type" : ""; my $grant_clause = defined($grant_type) ? "AND grant_type = $grant_type"
: "";
my $user_ids = $dbh->selectcol_arrayref( my $user_ids = $dbh->selectcol_arrayref(
"SELECT DISTINCT user_id "SELECT DISTINCT user_id
FROM user_group_map FROM user_group_map
......
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