Here's the code from Bugzilla::Bug:
sub cc {
my ($self) = @_;
return $self->{'cc'} if exists $self->{'cc'};
return [] if $self->{'error'};
my $dbh = Bugzilla->dbh;
$self->{'cc'} = $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, $self->bug_id);
$self->{'cc'} = undef if !scalar(@{$self->{'cc'}});
return $self->{'cc'};
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kristis Makris
Sent: Tuesday, June 12, 2007 9:10 AM
To: John Zielinski
Cc: [email protected]
Subject: Re: [scmbug-users] Bugzilla 3.0
Thanks John, that's a lot cleaner! I still reworked a few things. One thing
that wasn't clear to me was:
sub integration_get_bug_monitors_email_list {
my $self = shift;
my $bugid = shift;
my @bug_monitors_email_list;
if ( $self->is_version_latest() ) {
my $bug = new Bugzilla::Bug( $bugid );
my ( @cc ) = $bug->cc();
if ( @cc ) {
foreach my $c ( @cc ) {
foreach my $bug_monitor_email ( @$c ) {
push @bug_monitors_email_list, $bug_monitor_email;
}
}
}
...
}
Does the @cc list really contain a list of arrays ? Did anybody find the
online docs for Bugzilla::Bug ?
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users