aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-09-19 21:13:05 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-09-19 21:13:05 +0200
commitbdd3053df4eb4097c52ac550d71c96ef4a2ba25f (patch)
treeeaa0b3ae497f8a53489cbf15ba0c881f2e5f5615 /Bugzilla/Component.pm
parentBug 761046: Don't redirect when hitting buglist.cgi directly to avoid duplica... (diff)
downloadbugzilla-bdd3053df4eb4097c52ac550d71c96ef4a2ba25f.tar.gz
bugzilla-bdd3053df4eb4097c52ac550d71c96ef4a2ba25f.tar.bz2
bugzilla-bdd3053df4eb4097c52ac550d71c96ef4a2ba25f.zip
Bug 445861: $component->default_qa_contact should not return the default user object when no default QA contact is defined
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Component.pm')
-rw-r--r--Bugzilla/Component.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Component.pm b/Bugzilla/Component.pm
index f18963946..2c8658564 100644
--- a/Bugzilla/Component.pm
+++ b/Bugzilla/Component.pm
@@ -349,6 +349,8 @@ sub default_assignee {
sub default_qa_contact {
my $self = shift;
+ return if !$self->{'initialqacontact'};
+
if (!defined $self->{'default_qa_contact'}) {
$self->{'default_qa_contact'} =
new Bugzilla::User($self->{'initialqacontact'});
@@ -528,7 +530,8 @@ Component.pm represents a Product Component object.
Params: none.
- Returns: A Bugzilla::User object.
+ Returns: A Bugzilla::User object if the default QA contact is defined for
+ the component. Otherwise, returns undef.
=item C<initial_cc>