]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 281599: Remove RelationSet from Bugzilla::BugMail
authormkanat%kerio.com <>
Thu, 17 Feb 2005 02:52:57 +0000 (02:52 +0000)
committermkanat%kerio.com <>
Thu, 17 Feb 2005 02:52:57 +0000 (02:52 +0000)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=LpSolit, a=myk

Bugzilla/BugMail.pm

index ab511176cdae14bb201c776c403962251e723a37..fd1ac1a1c1b5ddaf67fa27592aa555f58d34f478 100644 (file)
@@ -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 " .