Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
588cb977
Commit
588cb977
authored
Jan 18, 2012
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 718905: Move user_preferences hook up, before other actions in userprefs.cgi
r=dkl, a=LpSolit
parent
ce3d3eca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
userprefs.cgi
userprefs.cgi
+10
-8
No files found.
userprefs.cgi
View file @
588cb977
...
@@ -499,6 +499,16 @@ check_token_data($token, 'edit_user_prefs') if $save_changes;
...
@@ -499,6 +499,16 @@ check_token_data($token, 'edit_user_prefs') if $save_changes;
# Do any saving, and then display the current tab.
# Do any saving, and then display the current tab.
SWITCH:
for
(
$current_tab_name
)
{
SWITCH:
for
(
$current_tab_name
)
{
# Extensions must set it to 1 to confirm the tab is valid.
my
$handled
=
0
;
Bugzilla::Hook::
process
(
'user_preferences'
,
{
'vars'
=>
$vars
,
save_changes
=>
$save_changes
,
current_tab
=>
$current_tab_name
,
handled
=>
\
$handled
});
last
SWITCH
if
$handled
;
/^account$/
&&
do
{
/^account$/
&&
do
{
SaveAccount
()
if
$save_changes
;
SaveAccount
()
if
$save_changes
;
DoAccount
();
DoAccount
();
...
@@ -523,14 +533,6 @@ SWITCH: for ($current_tab_name) {
...
@@ -523,14 +533,6 @@ SWITCH: for ($current_tab_name) {
DoSavedSearches
();
DoSavedSearches
();
last
SWITCH
;
last
SWITCH
;
};
};
# Extensions must set it to 1 to confirm the tab is valid.
my
$handled
=
0
;
Bugzilla::Hook::
process
(
'user_preferences'
,
{
'vars'
=>
$vars
,
save_changes
=>
$save_changes
,
current_tab
=>
$current_tab_name
,
handled
=>
\
$handled
});
last
SWITCH
if
$handled
;
ThrowUserError
(
"unknown_tab"
,
ThrowUserError
(
"unknown_tab"
,
{
current_tab_name
=>
$current_tab_name
});
{
current_tab_name
=>
$current_tab_name
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment