From: gerv%gerv.net <> Date: Tue, 27 Jan 2004 17:03:30 +0000 (+0000) Subject: Bug 232161 - add ability to forget or edit saved searches when the search throws... X-Git-Tag: bugzilla-2.17.7~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f970402777c85c9c602321d4838de6e0a04dc2b;p=thirdparty%2Fbugzilla.git Bug 232161 - add ability to forget or edit saved searches when the search throws an error. Patch by gerv; r,a=justdave. --- diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index ed194855a1..1aec9b4f6e 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 Back and try again.
+[%# 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 %] ++ Alternatively, you can + forget + + [% FOREACH q = Bugzilla.user.queries %] + [% IF q.name == namedcmd %] + or edit + [% END %] + [% END %] + + this saved search: '[% namedcmd FILTER html %]'. +
+[% END %] + [% PROCESS global/footer.html.tmpl %]