aboutsummaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2005-11-17 15:56:01 +0000
committerbbaetz%acm.org <>2005-11-17 15:56:01 +0000
commitbb88bbf8d2ec698377b37e7e505576c3a0cd72ab (patch)
tree327e79bdf28e5cf74a958a99798753139ba57bf7 /template/en
parentd6ec14acfbc6cac05e38fe2fc747bb519832260d (diff)
downloadbugs-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar
bugs-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar.gz
bugs-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar.bz2
bugs-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar.xz
bugs-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.zip
316146 - 'Add bugs to new saved search' has empty <select>
r=lpsolit, a=justdave
Diffstat (limited to 'template/en')
-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>