diff options
author | lpsolit%gmail.com <> | 2006-10-08 00:51:43 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-10-08 00:51:43 +0000 |
commit | cd7979447e26df48c208f8c7b07726c6a1c08a43 (patch) | |
tree | fc623b3fac9d19fecf83383f9083cef6bee67ce6 /userprefs.cgi | |
parent | Bug 355744: Bugs are not added to mandatory groups on bug creation - Patch by... (diff) | |
download | bugzilla-cd7979447e26df48c208f8c7b07726c6a1c08a43.tar.gz bugzilla-cd7979447e26df48c208f8c7b07726c6a1c08a43.tar.bz2 bugzilla-cd7979447e26df48c208f8c7b07726c6a1c08a43.zip |
Bug 355833: Groups are out of order when sharing queries - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
Diffstat (limited to 'userprefs.cgi')
-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); } } |