summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorgerv%gerv.net <>2004-01-27 18:03:30 +0100
committergerv%gerv.net <>2004-01-27 18:03:30 +0100
commit9f970402777c85c9c602321d4838de6e0a04dc2b (patch)
treec3f056ca31b52e1b62f82424377454b75b6aabc8 /template/en/default/global
parent8dc09cd56b82c84f93471fdb97a3c7f64e886143 (diff)
downloadbugzilla-9f970402777c85c9c602321d4838de6e0a04dc2b.tar.gz
bugzilla-9f970402777c85c9c602321d4838de6e0a04dc2b.tar.xz
Bug 232161 - add ability to forget or edit saved searches when the search throws an error. Patch by gerv; r,a=justdave.
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/user-error.html.tmpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index ed194855a..1aec9b4f6 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -734,4 +734,26 @@
Please press <b>Back</b> and try again.
</p>
+[%# If a saved search fails, people want the ability to edit or delete it.
+ # This is the best way of getting information about that possible saved
+ # search from any error call location. %]
+
+[% USE Bugzilla %]
+[% namedcmd = Bugzilla.cgi.param("namedcmd") %]
+[% IF namedcmd %]
+ <p>
+ Alternatively, you can
+ <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
+ [% namedcmd FILTER html %]">forget</a>
+
+ [% FOREACH q = Bugzilla.user.queries %]
+ [% IF q.name == namedcmd %]
+ or <a href="query.cgi?[% q.query FILTER html %]">edit</a>
+ [% END %]
+ [% END %]
+
+ this saved search: '[% namedcmd FILTER html %]'.
+ </p>
+[% END %]
+
[% PROCESS global/footer.html.tmpl %]