summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-10-08 02:51:43 +0200
committerlpsolit%gmail.com <>2006-10-08 02:51:43 +0200
commitcd7979447e26df48c208f8c7b07726c6a1c08a43 (patch)
treefc623b3fac9d19fecf83383f9083cef6bee67ce6
parentffa70a47a8eb345986d22b93c13ccdb3cf84e4f3 (diff)
downloadbugzilla-cd7979447e26df48c208f8c7b07726c6a1c08a43.tar.gz
bugzilla-cd7979447e26df48c208f8c7b07726c6a1c08a43.tar.xz
Bug 355833: Groups are out of order when sharing queries - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
-rwxr-xr-xuserprefs.cgi6
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);
}
}