diff options
Diffstat (limited to 'Bugzilla/Component.pm')
-rw-r--r-- | Bugzilla/Component.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Component.pm b/Bugzilla/Component.pm index b8321cbf9..4491b48cf 100644 --- a/Bugzilla/Component.pm +++ b/Bugzilla/Component.pm @@ -352,6 +352,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'}); @@ -531,7 +533,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> |