]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
316146 - 'Add bugs to new saved search' has empty <select>
authorbbaetz%acm.org <>
Thu, 17 Nov 2005 15:56:01 +0000 (15:56 +0000)
committerbbaetz%acm.org <>
Thu, 17 Nov 2005 15:56:01 +0000 (15:56 +0000)
r=lpsolit, a=justdave

template/en/default/global/per-bug-queries.html.tmpl

index 537ed01e4bf1e3abed6f7e6346a4434cd6db8b5c..a7a67853232d42d7e1bf8bea9809497355ca416a 100644 (file)
         <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>