summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
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 /userprefs.cgi
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 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi22
1 files changed, 0 insertions, 22 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 323c87d53..1c9cf2068 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -36,22 +36,10 @@ use Bugzilla::RelationSet;
# Use global template variables.
use vars qw($template $vars $userid);
-# The default email flags leave all email on.
-my $defaultflagstring = "ExcludeSelf~on~";
-
my @roles = ("Owner", "Reporter", "QAcontact", "CClist", "Voter");
my @reasons = ("Removeme", "Comments", "Attachments", "Status", "Resolved",
"Keywords", "CC", "Other", "Unconfirmed");
-foreach my $role (@roles) {
- foreach my $reason (@reasons) {
- $defaultflagstring .= "email$role$reason~on~";
- }
-}
-
-# Remove final "~".
-chop $defaultflagstring;
-
###############################################################################
# Each panel has two functions - panel Foo has a DoFoo, to get the data
# necessary for displaying the panel, and a SaveFoo, to save the panel's
@@ -161,16 +149,6 @@ sub DoEmail {
my ($flagstring) = FetchSQLData();
- # If the emailflags haven't been set before, that means that this user
- # hasn't been to the email pane of userprefs.cgi since the change to
- # use emailflags. Create a default flagset for them, based on
- # static defaults.
- if (!$flagstring) {
- $flagstring = $defaultflagstring;
- SendSQL("UPDATE profiles SET emailflags = " .
- SqlQuote($flagstring) . " WHERE userid = $userid");
- }
-
# The 255 param is here, because without a third param, split will
# trim any trailing null fields, which causes Perl to eject lots of
# warnings. Any suitably large number would do.