From: lpsolit%gmail.com <> Date: Sun, 7 Jan 2007 04:02:32 +0000 (+0000) Subject: Bug 365753: Incorrect "Cancel" link when moving bug to another product - Patch by... X-Git-Tag: bugzilla-2.23.4~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a763a685c4853086743a1e5357f727e6bae8e3b;p=thirdparty%2Fbugzilla.git Bug 365753: Incorrect "Cancel" link when moving bug to another product - Patch by Frédéric Buclin r=bkor a=justdave --- 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 9b73abe976..f248809846 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 @@
-Cancel and Return to the Search Page + +[%# 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 %] + Cancel and Return to the last search results +[% END %] [% PROCESS global/footer.html.tmpl %]