summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Product.pm
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-09-19 21:11:15 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-09-19 21:11:15 +0200
commitccf50a2c6a7765bdec9d8b738367f93be679798c (patch)
tree8e0dfdebcc0a343c47dfd7a88987ab3ebf319381 /Bugzilla/WebService/Product.pm
parent968667bb92b2f2e93e5c1b32b1aae36bacaf6a07 (diff)
downloadbugzilla-ccf50a2c6a7765bdec9d8b738367f93be679798c.tar.gz
bugzilla-ccf50a2c6a7765bdec9d8b738367f93be679798c.tar.xz
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/WebService/Product.pm')
-rw-r--r--Bugzilla/WebService/Product.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm
index 8d6fc5df2..2dcbe9de9 100644
--- a/Bugzilla/WebService/Product.pm
+++ b/Bugzilla/WebService/Product.pm
@@ -236,8 +236,9 @@ sub _component_to_hash {
$self->type('string' , $component->description),
default_assigned_to =>
$self->type('string' , $component->default_assignee->login),
- default_qa_contact =>
- $self->type('string' , $component->default_qa_contact->login),
+ default_qa_contact =>
+ $self->type('string' , $component->default_qa_contact ?
+ $component->default_qa_contact->login : ''),
sort_key => # sort_key is returned to match Bug.fields
0,
is_active =>
@@ -456,7 +457,7 @@ default.
=item C<default_qa_contact>
C<string> The login name of the user who will be set as the QA Contact for
-new bugs by default.
+new bugs by default. Empty string if the QA contact is not defined.
=item C<sort_key>