From 4c4edf2e8527920576ffa36972c0dc1855f1d9b3 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Mon, 8 Mar 2004 16:40:16 +0000 Subject: Bug 232176 - Add a preferences panel for saved searches, to allow management all in one place. Patch by gerv; r,a=justdave. --- userprefs.cgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'userprefs.cgi') diff --git a/userprefs.cgi b/userprefs.cgi index 3b320fa74..f2b9445ed 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -294,6 +294,14 @@ sub DoPermissions { # No SavePermissions() because this panel has no changeable fields. + +sub DoSavedSearches() { + $vars->{'queries'} = Bugzilla->user->queries; +} + +# No SaveSavedSearches() because this panel has no changeable fields (yet). + + ############################################################################### # Live code (not subroutine definitions) starts here ############################################################################### @@ -330,6 +338,10 @@ SWITCH: for ($current_tab_name) { DoPermissions(); last SWITCH; }; + /^saved-searches$/ && do { + DoSavedSearches(); + last SWITCH; + }; ThrowUserError("unknown_tab", { current_tab_name => $current_tab_name }); } -- cgit v1.2.3-24-g4f1b