Commit 80e66f43 authored by terry%mozilla.org's avatar terry%mozilla.org

Patch by holger@holger.om.org (Holger Schurig) -- several cleanups.

parent 8829ae5f
...@@ -29,11 +29,9 @@ require 'globals.pl'; ...@@ -29,11 +29,9 @@ require 'globals.pl';
sub GeneratePersonInput { sub GeneratePersonInput {
my ($field, $required, $def_value, $extraJavaScript) = (@_); my ($field, $required, $def_value, $extraJavaScript) = (@_);
if (!defined $extraJavaScript) { $extraJavaScript ||= "";
$extraJavaScript = "";
}
if ($extraJavaScript ne "") { if ($extraJavaScript ne "") {
$extraJavaScript = "onChange=\" $extraJavaScript \""; $extraJavaScript = "onChange=\"$extraJavaScript\"";
} }
return "<INPUT NAME=\"$field\" SIZE=32 $extraJavaScript VALUE=\"$def_value\">"; return "<INPUT NAME=\"$field\" SIZE=32 $extraJavaScript VALUE=\"$def_value\">";
} }
......
...@@ -546,14 +546,13 @@ while (@row = FetchSQLData()) { ...@@ -546,14 +546,13 @@ while (@row = FetchSQLData()) {
next; next;
} }
my $value = shift @row; my $value = shift @row;
my $nowrap = "";
if ($::needquote{$c}) { if ($::needquote{$c}) {
$value = html_quote($value); $value = html_quote($value);
} else { } else {
$value = "<nobr>$value</nobr>"; $value = "<nobr>$value</nobr>";
} }
pnl "<td $nowrap>$value"; pnl "<td>$value";
} }
if ($dotweak) { if ($dotweak) {
my $value = shift @row; my $value = shift @row;
......
...@@ -57,7 +57,7 @@ if (!defined $::buffer || $::buffer eq "") { ...@@ -57,7 +57,7 @@ if (!defined $::buffer || $::buffer eq "") {
$::buffer = $::COOKIE{"DEFAULTQUERY"}; $::buffer = $::COOKIE{"DEFAULTQUERY"};
} }
my %default; use vars qw(%default);
my %type; my %type;
foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform", foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
......
...@@ -261,6 +261,9 @@ FIN ...@@ -261,6 +261,9 @@ FIN
# start painting report # # start painting report #
######################### #########################
$bugs_status{'NEW'} ||= '0';
$bugs_status{'ASSIGNED'} ||= '0';
$bugs_status{'REOPENED'} ||= '0';
print <<FIN; print <<FIN;
<h1>$quip</h1> <h1>$quip</h1>
<table border=1 cellpadding=5> <table border=1 cellpadding=5>
......
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