diff options
author | mkanat%kerio.com <> | 2005-02-17 02:52:57 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-17 02:52:57 +0000 |
commit | 07e9d0d20d3907a8180e1f3708b72c86e26a8528 (patch) | |
tree | f680b8828b7c55fc7ed8d9f1af94563e5a45ec6a | |
parent | 151e10f54d18f1819551766974139f88d6e012f7 (diff) | |
download | bugs-07e9d0d20d3907a8180e1f3708b72c86e26a8528.tar bugs-07e9d0d20d3907a8180e1f3708b72c86e26a8528.tar.gz bugs-07e9d0d20d3907a8180e1f3708b72c86e26a8528.tar.bz2 bugs-07e9d0d20d3907a8180e1f3708b72c86e26a8528.tar.xz bugs-07e9d0d20d3907a8180e1f3708b72c86e26a8528.zip |
Bug 281599: Remove RelationSet from Bugzilla::BugMail
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=LpSolit, a=myk
-rw-r--r-- | Bugzilla/BugMail.pm | 12 |
1 files changed, 7 insertions, 5 deletions
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 " . |