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:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user