diff options
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi index 49948e2bb..7274ea8e2 100755 --- a/reports.cgi +++ b/reports.cgi @@ -253,7 +253,11 @@ sub generate_chart { my ($data_file, $image_file, $type, $product, $datasets) = @_; if (! open FILE, $data_file) { - ThrowCodeError("chart_data_not_generated"); + if ($product eq '-All-') { + $product = ''; + } + + ThrowCodeError("chart_data_not_generated", {'product' => $product}); } my @fields; |