From 07e9d0d20d3907a8180e1f3708b72c86e26a8528 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 17 Feb 2005 02:52:57 +0000 Subject: Bug 281599: Remove RelationSet from Bugzilla::BugMail Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla/BugMail.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index ab511176c..fd1ac1a1c 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -35,8 +35,6 @@ use base qw(Exporter); PerformSubsts ); -use Bugzilla::RelationSet; - use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Util; @@ -181,9 +179,13 @@ sub ProcessOneBug($) { trick_taint($start); trick_taint($end); - my $ccSet = new Bugzilla::RelationSet(); - $ccSet->mergeFromDB("SELECT who FROM cc WHERE bug_id = $id"); - $values{'cc'} = $ccSet->toString(); + my $cc_ref = Bugzilla->dbh->selectcol_arrayref( + q{SELECT profiles.login_name FROM cc, profiles + WHERE bug_id = ? + AND cc.who = profiles.userid + ORDER BY profiles.login_name}, + undef, $id); + $values{'cc'} = join(',', @$cc_ref); my @voterList; SendSQL("SELECT profiles.login_name FROM votes, profiles " . -- cgit v1.2.3-24-g4f1b