aboutsummaryrefslogtreecommitdiffstats
path: root/editusers.cgi
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 /editusers.cgi
parentd6e7117d0ff4a6674a186f443219f56c0bb5bab8 (diff)
downloadbugs-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar
bugs-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.gz
bugs-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.bz2
bugs-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.xz
bugs-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 'editusers.cgi')
-rwxr-xr-xeditusers.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi
index be8154d2e..7f3eef3a9 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -460,11 +460,12 @@ if ($action eq 'new') {
# Add the new user
SendSQL("INSERT INTO profiles ( " .
"login_name, cryptpassword, realname, " .
- "disabledtext" .
+ "emailflags, disabledtext" .
" ) VALUES ( " .
SqlQuote($user) . "," .
SqlQuote(Crypt($password)) . "," .
SqlQuote($realname) . "," .
+ SqlQuote(Bugzilla::Constants::DEFAULT_EMAIL_SETTINGS) . "," .
SqlQuote($disabledtext) . ")" );
#+++ send e-mail away