From: terry%mozilla.org <> Date: Sat, 12 Jun 1999 00:37:43 +0000 (+0000) Subject: Was choking if not using qacontact field. X-Git-Tag: bugzilla-2.6~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d594e95be703544d023c237c030009e4d25270;p=thirdparty%2Fbugzilla.git Was choking if not using qacontact field. --- diff --git a/doaddcomponent.cgi b/doaddcomponent.cgi index c7856fff11..f6a9675962 100755 --- a/doaddcomponent.cgi +++ b/doaddcomponent.cgi @@ -53,6 +53,11 @@ my $component = trim($::FORM{"component"}); my $product = trim($::FORM{"product"}); my $description = trim($::FORM{"description"}); my $initialowner = trim($::FORM{"initialowner"}); + +if (!defined $::FORM{"initialqacontact"}) { + # May not be defined if we're not using this field. + $::FORM{'initialqacontact'} = ""; +} my $initialqacontact = trim($::FORM{"initialqacontact"}); if ($component eq "") {