From ccf50a2c6a7765bdec9d8b738367f93be679798c Mon Sep 17 00:00:00 2001 From: Koosha Khajeh Moogahi Date: Wed, 19 Sep 2012 21:11:15 +0200 Subject: Bug 445861: $component->default_qa_contact should not return the default user object when no default QA contact is defined r/a=LpSolit --- Bugzilla/WebService/Product.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Bugzilla/WebService') 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 C 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 -- cgit v1.2.3-24-g4f1b