aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-02 04:52:20 +0000
committerlpsolit%gmail.com <>2005-09-02 04:52:20 +0000
commit5432b26b7479c9b90c1e172d285f02c00c173870 (patch)
treeac9d741c9398aacf562b9c79eb0a848cb37e1ef8 /reports.cgi
parentBug 304582: Move GenerateRandomPassword() out of globals.pl - Patch by FrĂ©dĂ... (diff)
downloadbugzilla-5432b26b7479c9b90c1e172d285f02c00c173870.tar.gz
bugzilla-5432b26b7479c9b90c1e172d285f02c00c173870.tar.bz2
bugzilla-5432b26b7479c9b90c1e172d285f02c00c173870.zip
Bug 298306: For new products, the charting error message "The tool which gathers bug counts has not been run yet" is misleading - Patch by Marc Schumann <wurblzap@gmail.com> r=gerv a=myk
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi6
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;