Bug 232176 - Add a preferences panel for saved searches, to allow management all in one place. Patch by gerv; r,a=justdave.

git-svn-id: svn://10.0.0.236/trunk@153673 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2004-03-08 08:40:17 +00:00
parent f3f45c0736
commit b2aae61cda
3 changed files with 52 additions and 0 deletions

View File

@@ -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 });
}