diff options
author | Koosha Khajeh Moogahi <koosha.khajeh@gmail.com> | 2012-09-19 21:11:15 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-09-19 21:11:15 +0200 |
commit | ccf50a2c6a7765bdec9d8b738367f93be679798c (patch) | |
tree | 8e0dfdebcc0a343c47dfd7a88987ab3ebf319381 /importxml.pl | |
parent | 968667bb92b2f2e93e5c1b32b1aae36bacaf6a07 (diff) | |
download | bugzilla-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 'importxml.pl')
-rwxr-xr-x | importxml.pl | 6 |
1 files changed, 4 insertions, 2 deletions
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"; } |