Commit 2288b468 authored by David Lawrence's avatar David Lawrence

Bug 1068277: No longer able to save/edit/forget a saved search if results are 0 in buglist.cgi

r=LpSolit,a=sgreen
parent 164d2a87
......@@ -188,8 +188,8 @@
[%# Navigation Bar #%]
[%############################################################################%]
[% IF bugs.size > 0 %]
<div class="buglist_menu">
<div class="buglist_menu">
[% IF bugs.size > 0 %]
<div class="bz_query_buttons">
<form method="post" action="show_bug.cgi">
[% buglist_joined = buglist.join(",") %]
......@@ -253,33 +253,33 @@
[% Hook.process("links") %]
</div>
<br>
<div class="bz_query_edit">
[% END %]
<div class="bz_query_edit">
<a href="[% PROCESS edit_search_url %]"><button>Edit Search</button></a>
</div>
[% IF searchtype == "saved" %]
<div class="bz_query_forget">
<a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
[% searchname FILTER uri %]&amp;token=
[% issue_hash_token([search_id, searchname]) FILTER uri %]"
><button>Forget Search '[% searchname FILTER html %]'</button></a>
</div>
[% ELSE %]
<div class="bz_query_remember">
<form method="get" action="buglist.cgi">
<input type="submit" id="remember" value="Remember search"> as
<input type="hidden" name="newquery"
value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
<input type="hidden" name="cmdtype" value="doit">
<input type="hidden" name="remtype" value="asnamed">
<input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]">
<input type="text" id="save_newqueryname" name="newqueryname" size="20"
title="New query name" value="[% defaultsavename FILTER html %]">
</form>
</div>
[% END %]
</div>
[% END %]
[% IF searchtype == "saved" %]
<div class="bz_query_forget">
<a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
[% searchname FILTER uri %]&amp;token=
[% issue_hash_token([search_id, searchname]) FILTER uri %]"
><button>Forget Search '[% searchname FILTER html %]'</button></a>
</div>
[% ELSE %]
<div class="bz_query_remember">
<form method="get" action="buglist.cgi">
<input type="submit" id="remember" value="Remember search"> as
<input type="hidden" name="newquery"
value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
<input type="hidden" name="cmdtype" value="doit">
<input type="hidden" name="remtype" value="asnamed">
<input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]">
<input type="text" id="save_newqueryname" name="newqueryname" size="20"
title="New query name" value="[% defaultsavename FILTER html %]">
</form>
</div>
[% END %]
</div>
[% IF one_product.defined && bugs.size %]
<p class="bz_query_single_product">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment