Re-fix for bug 71550: all watchers are now accounted for instead of only the first watcher found.

git-svn-id: svn://10.0.0.236/trunk@89707 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dave%intrec.com
2001-03-16 07:49:37 +00:00
parent 711641a17f
commit df86eaa659

View File

@@ -732,9 +732,11 @@ sub filterEmailGroup ($$$) {
foreach my $person(@emailList) {
my $personId = DBname_to_id($person);
SendSQL("SELECT watcher FROM watch WHERE watched = $personId");
my $watcher = FetchSQLData();
if ($watcher) {
push (@watchers, DBID_to_name($watcher));
while(MoreSQLData()) {
my ($watcher) = FetchSQLData();
if ($watcher) {
push (@watchers, DBID_to_name($watcher));
}
}
}
push(@emailList, @watchers);