Commit 4bdd5de5 authored by dave%intrec.com's avatar dave%intrec.com

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

parent b60994df
...@@ -732,11 +732,13 @@ sub filterEmailGroup ($$$) { ...@@ -732,11 +732,13 @@ sub filterEmailGroup ($$$) {
foreach my $person(@emailList) { foreach my $person(@emailList) {
my $personId = DBname_to_id($person); my $personId = DBname_to_id($person);
SendSQL("SELECT watcher FROM watch WHERE watched = $personId"); SendSQL("SELECT watcher FROM watch WHERE watched = $personId");
my $watcher = FetchSQLData(); while(MoreSQLData()) {
my ($watcher) = FetchSQLData();
if ($watcher) { if ($watcher) {
push (@watchers, DBID_to_name($watcher)); push (@watchers, DBID_to_name($watcher));
} }
} }
}
push(@emailList, @watchers); push(@emailList, @watchers);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment