diff options
author | lpsolit%gmail.com <> | 2006-06-19 08:11:59 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-19 08:11:59 +0200 |
commit | ccec3de0ed12a612343915b8c5fd2d903cca0408 (patch) | |
tree | d3aed133178000ac030a05948b08f93f60070fe4 /template/en/default/bug | |
parent | 7649fcfd8dd1f91bcec401fdaed6c8ee49c3af56 (diff) | |
download | bugzilla-ccec3de0ed12a612343915b8c5fd2d903cca0408.tar.gz bugzilla-ccec3de0ed12a612343915b8c5fd2d903cca0408.tar.xz |
Bug 341924: When viewing several bugs at once using show_bug.cgi?format=multiple, invalid bugs should generate an error message - Patch by Frédéric Buclin <LpSolit@gmail.com> r=timeless a=myk
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/show-multiple.html.tmpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl index 9244592d8..023cb9573 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -59,6 +59,22 @@ </h1> <table class="bugfields"> + [% IF bug.error %] + <tr> + <td class="error"> + [% IF bug.error == "InvalidBugId" %] + '[%+ bug.bug_id FILTER html %]' is not a valid [% terms.bug %] number + [%- IF Param("usebugaliases") %] nor a known [% terms.bug %] alias[% END %]. + [% ELSIF bug.error == "NotPermitted" %] + You are not allowed to view this [% terms.bug %]. + [% ELSIF bug.error == "NotFound" %] + This [% terms.bug %] cannot be found. + [% ELSE %] + [%+ bug.error FILTER html %] + [% END %] + </td> + </tr> + [% ELSE %] [%# The rightcell block (also called by the row block) automatically shows # the fields from rightcells %] [% rightcells = ['reporter', 'assigned_to'] %] @@ -237,6 +253,7 @@ </td> </tr> [% END %] + [% END %] </table> |