summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorJeff Fearn <Jeff.Fearn@gmail.com>2015-05-18 06:41:44 +0200
committerByron Jones <glob@mozilla.com>2015-05-18 06:41:44 +0200
commit85152c6f92719d00962a84e6b850081a6b46a2da (patch)
tree1887918cb468af76847184cf18109eb03bd05dba /Bugzilla/User.pm
parentf221565c373fda0fbe72dee66a780b44ee514141 (diff)
downloadbugzilla-85152c6f92719d00962a84e6b850081a6b46a2da.tar.gz
bugzilla-85152c6f92719d00962a84e6b850081a6b46a2da.tar.xz
Bug 1162334: email_enabled value inverted in User.update RPC call
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index d9adec4c7..d72009629 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -343,8 +343,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) = @_;
@@ -2602,6 +2603,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