diff options
author | gerv%gerv.net <> | 2003-04-27 22:43:12 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2003-04-27 22:43:12 +0200 |
commit | 61fa0b00b8e31c0e652320e84421569554828949 (patch) | |
tree | f1ea8e511dc7cbf4925c6f85b90ad2429c6c5ba1 | |
parent | 8449ddc1397a699e8473ee657b18e1ed6928f4bb (diff) | |
download | bugzilla-61fa0b00b8e31c0e652320e84421569554828949.tar.gz bugzilla-61fa0b00b8e31c0e652320e84421569554828949.tar.xz |
Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv; r,a=justdave.
-rwxr-xr-x | report.cgi | 4 | ||||
-rw-r--r-- | template/en/default/reports/report.html.tmpl | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/report.cgi b/report.cgi index 2a081606b..c311cc797 100755 --- a/report.cgi +++ b/report.cgi @@ -214,9 +214,7 @@ if ($cgi->param('format') eq "bar") { $min_width *= (scalar(@row_names) || 1); } - if ($width < $min_width) { - $width = $min_width; - } + $vars->{'min_width'} = $min_width; } $vars->{'width'} = $width if $width; diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index 00d589541..321ad6ae8 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -37,6 +37,10 @@ height = 350 %] +[% IF min_width AND width < min_width %] + [% width = min_width %] +[% END %] + [%# We ignore row_field for pie charts %] [% IF format == "pie" %] [% row_field = "" %] |