summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 21:32:08 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 21:32:08 +0100
commita7196a73cec5af3aa91f0af93d6316df1db7f433 (patch)
tree626dbd7866fb497f063767868d8c428a30d8b8f6 /userprefs.cgi
parent5721ab05a01ea3dacfc6f07669469b3868a4df06 (diff)
downloadbugzilla-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar.gz
bugzilla-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar.xz
Bug 545715: New Hook: bugmail_relationships
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index e6ee8fb8a..194469a00 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -27,6 +27,7 @@ use strict;
use lib qw(. lib);
use Bugzilla;
+use Bugzilla::BugMail;
use Bugzilla::Constants;
use Bugzilla::Search;
use Bugzilla::Util;
@@ -261,7 +262,8 @@ sub SaveEmail {
# relationship/event matrix.
# Note: the database holds only "off" email preferences, as can be implied
# from the name of the table - profiles_nomail.
- foreach my $rel (RELATIONSHIPS) {
+ my %relationships = Bugzilla::BugMail::relationships();
+ foreach my $rel (keys %relationships) {
# Positive events: a ticked box means "send me mail."
foreach my $event (POS_EVENTS) {
if (defined($cgi->param("email-$rel-$event"))