summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/per-bug-queries.html.tmpl19
1 files changed, 11 insertions, 8 deletions
diff --git a/template/en/default/global/per-bug-queries.html.tmpl b/template/en/default/global/per-bug-queries.html.tmpl
index 537ed01e4..a7a678532 100644
--- a/template/en/default/global/per-bug-queries.html.tmpl
+++ b/template/en/default/global/per-bug-queries.html.tmpl
@@ -24,15 +24,18 @@
<input type="hidden" name="add_bugids" value="1">
<input type="submit" value="Add"> [% terms.bugs %]
<input type="text" name="bug_ids" size="8" maxlength="80"> to
- <select name="oldqueryname">
- [% FOREACH q = user.queries %]
- [% IF q.query_type == constants.LIST_OF_BUGS %]
- <option value="[% q.name FILTER html %]">
- [% q.name FILTER html %]</option>
- [% END %]
+ [% foundq = 0 %]
+ [% FOREACH q = user.queries %]
+ [% NEXT UNLESS q.query_type == constants.LIST_OF_BUGS %]
+ [% IF !foundq %]
+ [% foundq = 1 %]
+ <select name="oldqueryname">
[% END %]
- </select>
- or to the new saved search:
+ <option value="[% q.name FILTER html %]">
+ [% q.name FILTER html %]</option>
+ [% END %]
+ [% "</select> or to " IF foundq %]
+ the new saved search:
<input type="text" name="newqueryname" size="20" maxlength="64">
</form>
</div>