Added a new table fielddefs that records information about the

different fields we keep an activity log on.  The bugs_activity table
now has a pointer into that table instead of recording the name directly.

Set up a new, highly experimental email-notification scheme.  To turn
it on, the maintainer has to turn on the "New email tech" param, and
then individual users have to turn on the "New email tech" preference.


git-svn-id: svn://10.0.0.236/trunk@58386 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
terry%mozilla.org
2000-01-22 04:24:42 +00:00
parent e36ce06075
commit d8d959532a
9 changed files with 454 additions and 27 deletions

View File

@@ -35,9 +35,9 @@ if (! defined $::FORM{'pwd1'}) {
$qacontactpart = ", the current QA Contact";
}
my $loginname = SqlQuote($::COOKIE{'Bugzilla_login'});
SendSQL("select emailnotification,realname from profiles where login_name = " .
SendSQL("select emailnotification,realname,newemailtech from profiles where login_name = " .
$loginname);
my ($emailnotification, $realname) = (FetchSQLData());
my ($emailnotification, $realname, $newemailtech) = (FetchSQLData());
$realname = value_quote($realname);
print qq{
<form method=post>
@@ -79,6 +79,21 @@ On which of these bugs would you like email notification of changes?</td>
</SELECT>
</td>
</tr>
";
if (Param("newemailtech")) {
my $checkedpart = $newemailtech ? "CHECKED" : "";
print qq{
<tr><td colspan=2><hr></td></tr>
<tr><td align=right><font color="red">New!</font> Bugzilla has a new email
notification scheme. It is <b>experimental and bleeding edge</b> and will
hopefully evolve into a brave new happy world where all the spam and ugliness
of the old notifications will go away. If you wish to sign up for this (and
risk any bugs), check here.</td>
<td><input type="checkbox" name="newemailtech" $checkedpart>New email tech</td>
</tr>
};
}
print "
</table>
<hr>
<input type=submit value=Submit>
@@ -126,8 +141,10 @@ Please click <b>Back</b> and try again.\n";
}
SendSQL("update profiles set emailnotification='$::FORM{'emailnotification'}' where login_name = " .
SqlQuote($::COOKIE{'Bugzilla_login'}));
SendSQL("UPDATE profiles " .
"SET emailnotification='$::FORM{'emailnotification'}', " .
" newemailtech = '$::FORM{'newemailtech'}' " .
"WHERE login_name = " . SqlQuote($::COOKIE{'Bugzilla_login'}));
my $newrealname = $::FORM{'realname'};