Commit 5d5597bb authored by Sunil Joshi's avatar Sunil Joshi Committed by Dave Lawrence

Bug 402745 - Improve the error message displayed when accessing summarize_time.cgi with no bug ID

parent a79bcea6
...@@ -254,7 +254,7 @@ $user->is_timetracker ...@@ -254,7 +254,7 @@ $user->is_timetracker
my @ids = split(",", $cgi->param('id') || ''); my @ids = split(",", $cgi->param('id') || '');
@ids = map { Bugzilla::Bug->check($_)->id } @ids; @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 $group_by = $cgi->param('group_by') || "number";
my $monthly = $cgi->param('monthly'); my $monthly = $cgi->param('monthly');
......
...@@ -1287,6 +1287,8 @@ ...@@ -1287,6 +1287,8 @@
to modify. to modify.
[% ELSIF action == "view" %] [% ELSIF action == "view" %]
to view. to view.
[% ELSIF action == 'summarize' %]
for viewing time summaries.
[% END %] [% END %]
[% ELSIF error == "no_tag_to_edit" %] [% ELSIF error == "no_tag_to_edit" %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment