summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-27 06:19:17 +0200
committerByron Jones <glob@mozilla.com>2015-07-27 06:19:17 +0200
commita8ef3e105b01d4a7f765edbe53b7af53ed179020 (patch)
treecf9340948a7944b6d0755f2de514d7c3a4936882 /Bugzilla/Install
parent1e3288184f015700e109ead8e21c1383152e340b (diff)
downloadbugzilla-a8ef3e105b01d4a7f765edbe53b7af53ed179020.tar.gz
bugzilla-a8ef3e105b01d4a7f765edbe53b7af53ed179020.tar.xz
Bug 1186788 - disabling an account should always disable bugmail
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 92015f22f..0892d3293 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -732,6 +732,8 @@ sub update_table_definitions {
_add_attach_size();
+ _fix_disable_mail();
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
@@ -3847,6 +3849,11 @@ sub _add_attach_size {
");
}
+sub _fix_disable_mail {
+ # you can no longer have disabled accounts with enabled mail
+ Bugzilla->dbh->do("UPDATE profiles SET disable_mail = 1 WHERE is_enabled = 0");
+}
+
1;
__END__