Commit 151e10f5 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 281596: Remove RelationSet from Bugzilla::Bug

Patch by Max Kanat-Alexander <mkanat@kerio.com> r=LpSolit, a=myk
parent db654f60
...@@ -27,7 +27,6 @@ package Bugzilla::Bug; ...@@ -27,7 +27,6 @@ package Bugzilla::Bug;
use strict; use strict;
use Bugzilla::RelationSet;
use vars qw($legal_keywords @legal_platform use vars qw($legal_keywords @legal_platform
@legal_priority @legal_severity @legal_opsys @legal_bugs_status @legal_priority @legal_severity @legal_opsys @legal_bugs_status
@settable_resolution %components %versions %target_milestone @settable_resolution %components %versions %target_milestone
...@@ -201,11 +200,14 @@ sub initBug { ...@@ -201,11 +200,14 @@ sub initBug {
$self->{'qa_contact'} = undef; $self->{'qa_contact'} = undef;
} }
my $ccSet = new Bugzilla::RelationSet; my $cc_ref = $dbh->selectcol_arrayref(
$ccSet->mergeFromDB("select who from cc where bug_id=$bug_id"); q{SELECT profiles.login_name FROM cc, profiles
my @cc = $ccSet->toArrayOfStrings(); WHERE bug_id = ?
if (@cc) { AND cc.who = profiles.userid
$self->{'cc'} = \@cc; ORDER BY profiles.login_name},
undef, $bug_id);
if (scalar(@$cc_ref)) {
$self->{'cc'} = $cc_ref;
} }
if (@::legal_keywords) { if (@::legal_keywords) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment