From: gerv%gerv.net <> Date: Sun, 27 Apr 2003 20:43:12 +0000 (+0000) Subject: Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv... X-Git-Tag: bugzilla-2.17.5~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61fa0b00b8e31c0e652320e84421569554828949;p=thirdparty%2Fbugzilla.git Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv; r,a=justdave. --- diff --git a/report.cgi b/report.cgi index 2a081606b0..c311cc7979 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 00d5895415..321ad6ae8d 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 = "" %]