summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-27 10:17:50 +0200
committerByron Jones <glob@mozilla.com>2015-07-27 10:17:50 +0200
commit9ac34b960b8266bcbf1eb438a2cd3fef383bc849 (patch)
tree33ea39e532717131118d530c43de3b48b5dc048d /Bugzilla
parent8ab6fbf6eecf9f8112c786040ac8efa1ee3c2770 (diff)
downloadbugzilla-9ac34b960b8266bcbf1eb438a2cd3fef383bc849.tar.gz
bugzilla-9ac34b960b8266bcbf1eb438a2cd3fef383bc849.tar.xz
Bug 1186788 - disabling an account should always disable bugmail (fix part 2)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index fe48e4bf2..9bfb4046f 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2222,11 +2222,13 @@ sub create {
sub check_required_create_fields {
my ($invocant, $params) = @_;
+ my $class = ref($invocant) || $invocant;
# ensure disabled users also have their email disabled
$params->{disable_mail} = 1 if
exists $params->{disabledtext}
&& defined($params->{disabledtext})
&& trim($params->{disabledtext}) ne '';
+ $class->SUPER::check_required_create_fields($params);
}
###########################