]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Sat, 20 Feb 2010 20:06:01 +0000 (12:06 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Sat, 20 Feb 2010 20:06:01 +0000 (12:06 -0800)
an invalid email
r=LpSolit, a=LpSolit

email_in.pl

index 7f2b2f6e4d8c64cbbd004189944615c01f10a862..1f610f1383f7a4cad98258e56bc11932ff87a27c 100755 (executable)
@@ -157,6 +157,7 @@ sub post_bug {
     # Restrict the bug to groups marked as Default.
     # We let Bug->create throw an error if the product is
     # not accessible, to throw the correct message.
+    $fields->{product} = '' if !defined $fields->{product};
     my $product = new Bugzilla::Product({ name => $fields->{product} });
     if ($product) {
         my @gids;