diff options
author | lpsolit%gmail.com <> | 2007-01-07 04:02:32 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-01-07 04:02:32 +0000 |
commit | 4a763a685c4853086743a1e5357f727e6bae8e3b (patch) | |
tree | 8363d1a5fceaa2beb1ac20cb3e03d7523adf95b6 /template/en/default/bug | |
parent | b553417d4f0c6badbabb452024536b493ebb987e (diff) | |
download | bugs-4a763a685c4853086743a1e5357f727e6bae8e3b.tar bugs-4a763a685c4853086743a1e5357f727e6bae8e3b.tar.gz bugs-4a763a685c4853086743a1e5357f727e6bae8e3b.tar.bz2 bugs-4a763a685c4853086743a1e5357f727e6bae8e3b.tar.xz bugs-4a763a685c4853086743a1e5357f727e6bae8e3b.zip |
Bug 365753: Incorrect "Cancel" link when moving bug to another product - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=justdave
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/process/verify-new-product.html.tmpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl index 9b73abe97..f24880984 100644 --- a/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/template/en/default/bug/process/verify-new-product.html.tmpl @@ -118,7 +118,16 @@ </form> <hr> -<a href="query.cgi">Cancel and Return to the Search Page</a> + +[%# If 'id' is defined, then we are editing a single bug. + # Else we are editing several bugs at once. %] + +[% IF cgi.param('id') AND cgi.param('id').match('^\d+$') %] + [% id = cgi.param('id') %] + [% "Cancel and Return to $terms.bug $id" FILTER bug_link(id) FILTER none %] +[% ELSE %] + <a href="buglist.cgi?regetlastlist=1">Cancel and Return to the last search results</a> +[% END %] [% PROCESS global/footer.html.tmpl %] |