summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-03-22 06:50:02 +0100
committerByron Jones <bjones@mozilla.com>2012-03-22 06:50:02 +0100
commit76c90bb4e3390f5622e0426292921876be650b9c (patch)
treed1d831010bd2a94fac15806d06b3cb396df2349a /Bugzilla/Install
parent84a465473560c62db6903dd529582933a3b20be9 (diff)
downloadbugzilla-76c90bb4e3390f5622e0426292921876be650b9c.tar.gz
bugzilla-76c90bb4e3390f5622e0426292921876be650b9c.tar.xz
Bug 731526: Adds an email event for product and/or component notifications
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index e48a36cff..5bd8fc790 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -388,7 +388,7 @@ sub update_table_definitions {
"WHERE initialqacontact = 0");
_migrate_email_prefs_to_new_table();
- _initialize_dependency_tree_changes_email_pref();
+ _initialize_new_email_prefs();
_change_all_mysql_booleans_to_tinyint();
# make classification_id field type be consistent with DB:Schema
@@ -2393,13 +2393,16 @@ sub _migrate_email_prefs_to_new_table {
}
}
-sub _initialize_dependency_tree_changes_email_pref {
+sub _initialize_new_email_prefs {
my $dbh = Bugzilla->dbh;
# Check for any "new" email settings that wouldn't have been ported over
# during the block above. Since these settings would have otherwise
# fallen under EVT_OTHER, we'll just clone those settings. That way if
# folks have already disabled all of that mail, there won't be any change.
- my %events = ("Dependency Tree Changes" => EVT_DEPEND_BLOCK);
+ my %events = (
+ "Dependency Tree Changes" => EVT_DEPEND_BLOCK,
+ "Product/Component Changes" => EVT_COMPONENT,
+ );
foreach my $desc (keys %events) {
my $event = $events{$desc};