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 --- importxml.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index 1105e2517..3b0bc093b 100755 --- a/importxml.pl +++ b/importxml.pl @@ -828,8 +828,10 @@ sub process_bug { push( @values, $qa_contact ); } else { - push( @values, $component->default_qa_contact->id || undef ); - if ($component->default_qa_contact->id){ + push(@values, $component->default_qa_contact ? + $component->default_qa_contact->id : undef); + + if ($component->default_qa_contact) { $err .= "Setting qa contact to the default for this product.\n"; $err .= " This bug either had no qa contact or an invalid one.\n"; } -- cgit v1.2.3-24-g4f1b