diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 16e72b296..a5c3e032d 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -2007,7 +2007,7 @@ sub _contact_exact_group { my $user = $self->_user; $value =~ /\%group\.([^%]+)%/; - my $group = Bugzilla::Group->check($1); + my $group = Bugzilla::Group->check({ name => $1, _error => 'invalid_group_name' }); $group->check_members_are_visible(); $user->in_group($group) || ThrowUserError('invalid_group_name', {name => $group->name}); @@ -2054,7 +2054,7 @@ sub _cc_exact_group { my $dbh = Bugzilla->dbh; $value =~ m/%group\.([^%]+)%/; - my $group = Bugzilla::Group->check($1); + my $group = Bugzilla::Group->check({ name => $1, _error => 'invalid_group_name' }); $group->check_members_are_visible(); $user->in_group($group) || ThrowUserError('invalid_group_name', {name => $group->name}); |