diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 12:32:08 -0800 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 12:32:08 -0800 |
commit | a7196a73cec5af3aa91f0af93d6316df1db7f433 (patch) | |
tree | 626dbd7866fb497f063767868d8c428a30d8b8f6 /userprefs.cgi | |
parent | 5721ab05a01ea3dacfc6f07669469b3868a4df06 (diff) | |
download | bugs-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar bugs-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar.gz bugs-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar.bz2 bugs-a7196a73cec5af3aa91f0af93d6316df1db7f433.tar.xz bugs-a7196a73cec5af3aa91f0af93d6316df1db7f433.zip |
Bug 545715: New Hook: bugmail_relationships
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 4 |
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")) |