summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-17 03:48:59 +0100
committermkanat%kerio.com <>2005-02-17 03:48:59 +0100
commit151e10f54d18f1819551766974139f88d6e012f7 (patch)
treef735e0637af4d02c0a560b191417c559b05d59a2 /Bugzilla
parentdb654f60eee16ea5065f1b491ddcc7d74b401531 (diff)
downloadbugzilla-151e10f54d18f1819551766974139f88d6e012f7.tar.gz
bugzilla-151e10f54d18f1819551766974139f88d6e012f7.tar.xz
Bug 281596: Remove RelationSet from Bugzilla::Bug
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=LpSolit, a=myk
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 380aa6e32..5e25820e9 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -27,7 +27,6 @@ package Bugzilla::Bug;
use strict;
-use Bugzilla::RelationSet;
use vars qw($legal_keywords @legal_platform
@legal_priority @legal_severity @legal_opsys @legal_bugs_status
@settable_resolution %components %versions %target_milestone
@@ -201,11 +200,14 @@ sub initBug {
$self->{'qa_contact'} = undef;
}
- my $ccSet = new Bugzilla::RelationSet;
- $ccSet->mergeFromDB("select who from cc where bug_id=$bug_id");
- my @cc = $ccSet->toArrayOfStrings();
- if (@cc) {
- $self->{'cc'} = \@cc;
+ my $cc_ref = $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, $bug_id);
+ if (scalar(@$cc_ref)) {
+ $self->{'cc'} = $cc_ref;
}
if (@::legal_keywords) {