Bug 365407: Reorder tabs in userprefs.cgi - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r/a=justdave

This commit is contained in:
lpsolit%gmail.com 2006-12-30 19:53:52 +00:00
parent 3300050416
commit b0ef0942a2
2 changed files with 4 additions and 4 deletions

View File

@ -43,14 +43,14 @@
style_urls = ['skins/standard/admin.css']
%]
[% tabs = [ { name => "account", label => "Account Preferences",
link => "userprefs.cgi?tab=account", saveable => "1" },
{ name => "settings", label => "General Preferences",
[% tabs = [{ name => "settings", label => "General Preferences",
link => "userprefs.cgi?tab=settings", saveable => "1" },
{ name => "email", label => "Email Preferences",
link => "userprefs.cgi?tab=email", saveable => "1" },
{ name => "saved-searches", label => "Saved Searches",
link => "userprefs.cgi?tab=saved-searches", saveable => "1" },
{ name => "account", label => "Name and Password",
link => "userprefs.cgi?tab=account", saveable => "1" },
{ name => "permissions", label => "Permissions",
link => "userprefs.cgi?tab=permissions", saveable => "0" } ] %]

View File

@ -506,7 +506,7 @@ $cgi->param('Bugzilla_password', $bugzilla_password);
$vars->{'changes_saved'} = $cgi->param('dosave');
my $current_tab_name = $cgi->param('tab') || "account";
my $current_tab_name = $cgi->param('tab') || "settings";
# The SWITCH below makes sure that this is valid
trick_taint($current_tab_name);