summaryrefslogtreecommitdiffstats
path: root/importxml.pl
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 /importxml.pl
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 'importxml.pl')
-rwxr-xr-ximportxml.pl6
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";
}