From: Sunil Joshi Date: Tue, 30 Jul 2013 17:27:36 +0000 (-0400) Subject: Bug 402745 - Improve the error message displayed when accessing summarize_time.cgi... X-Git-Tag: bugzilla-4.5.1~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d5597bbd642ad00f2637abbc93714b86a359641;p=thirdparty%2Fbugzilla.git Bug 402745 - Improve the error message displayed when accessing summarize_time.cgi with no bug ID --- diff --git a/summarize_time.cgi b/summarize_time.cgi index d77634da5e..0d32d16e45 100755 --- a/summarize_time.cgi +++ b/summarize_time.cgi @@ -254,7 +254,7 @@ $user->is_timetracker my @ids = split(",", $cgi->param('id') || ''); @ids = map { Bugzilla::Bug->check($_)->id } @ids; -scalar(@ids) || ThrowUserError('no_bugs_chosen', {action => 'view'}); +scalar(@ids) || ThrowUserError('no_bugs_chosen', {action => 'summarize'}); my $group_by = $cgi->param('group_by') || "number"; my $monthly = $cgi->param('monthly'); diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index a52d1833f3..65fb4f18aa 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1287,6 +1287,8 @@ to modify. [% ELSIF action == "view" %] to view. + [% ELSIF action == 'summarize' %] + for viewing time summaries. [% END %] [% ELSIF error == "no_tag_to_edit" %]