Bug 280517 : Let me know who is watching my account

Patch by Frederic Buclin <LpSolit@gmail.com>  r=myk a=myk


git-svn-id: svn://10.0.0.236/trunk@170707 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
travis%sedsystems.ca
2005-03-15 16:10:18 +00:00
parent ec8b388c23
commit 62918f18a8
2 changed files with 28 additions and 0 deletions

View File

@@ -182,6 +182,19 @@ sub DoEmail {
. " WHERE watcher = ? AND watch.watched = profiles.userid",
undef, $userid);
$vars->{'watchedusers'} = join(',', @$watched_ref);
my $watcher_ids = $dbh->selectcol_arrayref(
"SELECT watcher FROM watch WHERE watched = ?",
undef, $userid);
my @watchers;
foreach my $watcher_id (@$watcher_ids) {
my $watcher = new Bugzilla::User($watcher_id);
push (@watchers, Bugzilla::User::identity($watcher));
}
@watchers = sort { lc($a) cmp lc($b) } @watchers;
$vars->{'watchers'} = \@watchers;
}
SendSQL("SELECT emailflags FROM profiles WHERE userid = $userid");