From: dave%intrec.com <> Date: Fri, 16 Mar 2001 15:49:37 +0000 (+0000) Subject: Re-fix for bug 71550: all watchers are now accounted for instead of only the first... X-Git-Tag: bugzilla-2.12~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bdd5de52152184212d5be6bdc371761d5d659f4;p=thirdparty%2Fbugzilla.git Re-fix for bug 71550: all watchers are now accounted for instead of only the first watcher found. --- diff --git a/processmail b/processmail index dbd419e411..a51a076670 100755 --- a/processmail +++ b/processmail @@ -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);