|
From: Benjamin C. <bc...@us...> - 2003-07-06 22:57:36
|
Update of /cvsroot/phpbt/phpbt
In directory sc8-pr-cvs1:/tmp/cvs-serv16358
Modified Files:
bug.php
Log Message:
I want to not email the user who made the change until we have a user preference to turn it on and off
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- bug.php 20 Jun 2003 01:10:20 -0000 1.132
+++ bug.php 6 Jul 2003 22:57:33 -0000 1.133
@@ -249,7 +249,6 @@
$reporter = $db->getOne('select email from '.TBL_AUTH_USER.
" u, ".TBL_USER_PREF." p where u.user_id = {$buginfo['created_by']} ".
"and u.user_id = p.user_id and email_notices = 1");
-
$reporterstat = ' ';
// If there are new comments grab the comments immediately before the latest
@@ -294,9 +293,13 @@
$maillist = array();
- $maillist[] = $reporter;
-
- if (!empty($assignedto) and $emailassignedto) {
+ // Don't email the person who just made the changes (later, make this
+ // behavior toggable by the user)
+ if ($userid != $buginfo['created_by'] and !empty($reporter)) {
+ $maillist[] = $reporter;
+ }
+ if ($userid != (!empty($cf['assigned_to']) ? $cf['assigned_to'] : $buginfo['assigned_to'])
+ and !empty($assignedto) and $emailassignedto) {
$maillist[] = $assignedto;
}
|