Bug 120543 - Software error when entering a bug when not logged in & only

one product. r=caillon,jake
parent 4c07cc48
...@@ -1037,7 +1037,7 @@ Content-type: text/html ...@@ -1037,7 +1037,7 @@ Content-type: text/html
# (except for Bugzilla_login and Bugzilla_password which we # (except for Bugzilla_login and Bugzilla_password which we
# already added as text fields above). # already added as text fields above).
foreach my $i ( grep( $_ !~ /^Bugzilla_/ , keys %::FORM ) ) { foreach my $i ( grep( $_ !~ /^Bugzilla_/ , keys %::FORM ) ) {
if (scalar(@{$::MFORM{$i}}) > 1) { if (defined $::MFORM{$i} && scalar(@{$::MFORM{$i}}) > 1) {
# This field has multiple values; add each one separately. # This field has multiple values; add each one separately.
foreach my $val (@{$::MFORM{$i}}) { foreach my $val (@{$::MFORM{$i}}) {
print qq|<input type="hidden" name="$i" value="@{[value_quote($val)]}">\n|; print qq|<input type="hidden" name="$i" value="@{[value_quote($val)]}">\n|;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment