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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3d2b7248
Commit
3d2b7248
authored
May 18, 2015
by
Jeff Fearn
Committed by
Byron Jones
May 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1162334: email_enabled value inverted in User.update RPC call
r=glob,a=glob
parent
e191f86a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Constants.pm
Bugzilla/Constants.pm
+1
-1
User.pm
Bugzilla/User.pm
+7
-2
User.pm
Bugzilla/WebService/User.pm
+0
-2
No files found.
Bugzilla/Constants.pm
View file @
3d2b7248
...
...
@@ -213,7 +213,7 @@ use constant LOCAL_FILE => 'bugzilla-update.xml'; # Relative to datadir.
# When true CSS and JavaScript assets will be concatanted and minified at
# run-time, to reduce the number of requests required to render a page.
# Setting this to a false value can help debugging.
use
constant
CONCATENATE_ASSETS
=>
0
;
use
constant
CONCATENATE_ASSETS
=>
1
;
# These are unique values that are unlikely to match a string or a number,
# to be used in criteria for match() functions and other things. They start
...
...
Bugzilla/User.pm
View file @
3d2b7248
...
...
@@ -314,8 +314,9 @@ sub _check_is_enabled {
# Mutators
################################################################################
sub
set_disable_mail
{
$_
[
0
]
->
set
(
'disable_mail'
,
$_
[
1
]);
}
sub
set_extern_id
{
$_
[
0
]
->
set
(
'extern_id'
,
$_
[
1
]);
}
sub
set_disable_mail
{
$_
[
0
]
->
set
(
'disable_mail'
,
$_
[
1
]);
}
sub
set_email_enabled
{
$_
[
0
]
->
set
(
'disable_mail'
,
!
$_
[
1
]);
}
sub
set_extern_id
{
$_
[
0
]
->
set
(
'extern_id'
,
$_
[
1
]);
}
sub
set_login
{
my
(
$self
,
$login
)
=
@_
;
...
...
@@ -2679,6 +2680,10 @@ This notes that this account has failed to log in, and stores the fact
in the database. The storing happens immediately, it does not wait for
you to call C<update>.
=item C<set_email_enabled>
C<bool> - Sets C<disable_mail> to the inverse of the boolean provided.
=back
=head2 Other Methods
...
...
Bugzilla/WebService/User.pm
View file @
3d2b7248
...
...
@@ -46,14 +46,12 @@ use constant MAPPED_FIELDS => {
email
=>
'login'
,
full_name
=>
'name'
,
login_denied_text
=>
'disabledtext'
,
email_enabled
=>
'disable_mail'
};
use
constant
MAPPED_RETURNS
=>
{
login_name
=>
'email'
,
realname
=>
'full_name'
,
disabledtext
=>
'login_denied_text'
,
disable_mail
=>
'email_enabled'
};
##############
...
...
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