diff options
author | bbaetz%acm.org <> | 2005-11-17 16:56:01 +0100 |
---|---|---|
committer | bbaetz%acm.org <> | 2005-11-17 16:56:01 +0100 |
commit | bb88bbf8d2ec698377b37e7e505576c3a0cd72ab (patch) | |
tree | 327e79bdf28e5cf74a958a99798753139ba57bf7 /template/en | |
parent | d6ec14acfbc6cac05e38fe2fc747bb519832260d (diff) | |
download | bugzilla-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar.gz bugzilla-bb88bbf8d2ec698377b37e7e505576c3a0cd72ab.tar.xz |
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.tmpl | 19 |
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> |