summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
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 /Bugzilla/User.pm
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 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index e0c5b132f..240fcfcdb 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1568,7 +1568,9 @@ sub create {
my $user = $class->SUPER::create(@_);
# Turn on all email for the new user
- foreach my $rel (RELATIONSHIPS) {
+ require Bugzilla::BugMail;
+ my %relationships = Bugzilla::BugMail::relationships();
+ foreach my $rel (keys %relationships) {
foreach my $event (POS_EVENTS, NEG_EVENTS) {
# These "exceptions" define the default email preferences.
#