]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 232161 - add ability to forget or edit saved searches when the search throws...
authorgerv%gerv.net <>
Tue, 27 Jan 2004 17:03:30 +0000 (17:03 +0000)
committergerv%gerv.net <>
Tue, 27 Jan 2004 17:03:30 +0000 (17:03 +0000)
template/en/default/global/user-error.html.tmpl

index ed194855a16ae41bf4bde1924b38b93c364ff1b2..1aec9b4f6eed48730b1251148acfc381160ad460 100644 (file)
   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 %]