summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-01-07 05:02:32 +0100
committerlpsolit%gmail.com <>2007-01-07 05:02:32 +0100
commit4a763a685c4853086743a1e5357f727e6bae8e3b (patch)
tree8363d1a5fceaa2beb1ac20cb3e03d7523adf95b6 /template/en/default/bug
parentb553417d4f0c6badbabb452024536b493ebb987e (diff)
downloadbugzilla-4a763a685c4853086743a1e5357f727e6bae8e3b.tar.gz
bugzilla-4a763a685c4853086743a1e5357f727e6bae8e3b.tar.xz
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.tmpl11
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 %]