summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-08 05:56:01 +0100
committertravis%sedsystems.ca <>2005-01-08 05:56:01 +0100
commite2466aae1fda4c2ce67c517074fdc4369d68b848 (patch)
treeeb5daecabb33f093d2e31b61fd884992e8c15938 /Bugzilla/User.pm
parentd6e7117d0ff4a6674a186f443219f56c0bb5bab8 (diff)
downloadbugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.gz
bugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.xz
Bug 108870: Bugzilla does not set email prefs for new user until user visits userprefs.cgi
Patch: travis r=mkanat a=justdave Also includes fixes for Bug 109573: New bugzilla accounts should by default have 'CC field changes' turned off, and Bug 275599: flag request email prefs not behaving correctly
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm14
1 files changed, 0 insertions, 14 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index e66419941..373a65655 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -858,20 +858,6 @@ sub email_prefs {
my @reasons = qw(Removeme Comments Attachments Status Resolved Keywords
CC Other Unconfirmed);
- # If the prefs are empty, this user hasn't visited the email pane
- # of userprefs.cgi since before the change to use the "emailflags"
- # column, so initialize that field with the default prefs.
- if (!$flags) {
- # Create a default prefs string that causes the user to get all email.
- $flags = "ExcludeSelf~on~FlagRequestee~on~FlagRequester~on~";
- foreach my $role (@roles) {
- foreach my $reason (@reasons) {
- $flags .= "email$role$reason~on~";
- }
- }
- chop $flags;
- }
-
# Convert the prefs from the flags string from the database into
# a Perl record. The 255 param is here because split will trim
# any trailing null fields without a third param, which causes Perl