diff options
author | mkanat%bugzilla.org <> | 2008-08-08 08:26:33 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-08-08 08:26:33 +0200 |
commit | 50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (patch) | |
tree | 424d04a868fb5fdffbfa2dd65cc8903ece84895f /buglist.cgi | |
parent | aca14df0a0daca1f2eb637d400285e3f14add35e (diff) | |
download | bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.gz bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.xz |
Bug 442031: Make Bugzilla::User::groups return an arrayref of Bugzilla::Group objects (instead of a hashref of group ids and names).
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi index 114523286..a498d09f1 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -264,7 +264,7 @@ sub LookupNamedQuery { FROM namedquery_group_map WHERE namedquery_id = ?', undef, $id); - if (!grep {$_ == $group} values(%{$user->groups()})) { + if (!grep { $_->id == $group } @{ $user->groups }) { ThrowUserError("missing_query", {'queryname' => $name, 'sharer_id' => $sharer_id}); } |