aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-08 04:56:01 +0000
committertravis%sedsystems.ca <>2005-01-08 04:56:01 +0000
commite2466aae1fda4c2ce67c517074fdc4369d68b848 (patch)
treeeb5daecabb33f093d2e31b61fd884992e8c15938 /globals.pl
parentBug 276446: Initial description cannot be made private on new bug creation (diff)
downloadbugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.gz
bugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.bz2
bugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.zip
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 'globals.pl')
-rw-r--r--globals.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl
index 12644d506..5f599146f 100644
--- a/globals.pl
+++ b/globals.pl
@@ -435,13 +435,15 @@ sub InsertNewUser {
my $cryptpassword = Crypt($password);
+ my $defaultflagstring = SqlQuote(Bugzilla::Constants::DEFAULT_EMAIL_SETTINGS);
+
# Insert the new user record into the database.
$username = SqlQuote($username);
$realname = SqlQuote($realname);
$cryptpassword = SqlQuote($cryptpassword);
PushGlobalSQLState();
- SendSQL("INSERT INTO profiles (login_name, realname, cryptpassword)
- VALUES ($username, $realname, $cryptpassword)");
+ SendSQL("INSERT INTO profiles (login_name, realname, cryptpassword, emailflags)
+ VALUES ($username, $realname, $cryptpassword, $defaultflagstring)");
PopGlobalSQLState();
# Return the password to the calling code so it can be included