diff options
-rwxr-xr-x | userprefs.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/userprefs.cgi b/userprefs.cgi index 2d7fa4de5..d06e486ef 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -405,10 +405,8 @@ sub DoSavedSearches { } $vars->{'queries'} = \@newqueries; if ($user->queryshare_groups_as_string) { - $vars->{'queryshare_groups'} = $dbh->selectall_arrayref( - 'SELECT id, name FROM groups WHERE id IN ' . - '(' . $user->queryshare_groups_as_string .')', - {'Slice' => {}}); + $vars->{'queryshare_groups'} = + Bugzilla::Group->new_from_list($user->queryshare_groups); } } |