diff options
author | David Lawrence <dkl@mozilla.com> | 2014-04-10 16:29:25 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-04-10 16:29:25 +0200 |
commit | a2689d0747d489c5d6f1b073a829df7d69357bda (patch) | |
tree | 5766084111249223f20337ecfdac5d74af777bd5 /template/en/default/request | |
parent | 13408dc745948de52f0dc6f1a3e7080a39289ab4 (diff) | |
download | bugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.gz bugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.xz |
Backout of Bug 990982 - backport bug 539894 to bmo (Use <optgroup/> to group products into classifications in the product drop-down on show_bug.cgi)
Diffstat (limited to 'template/en/default/request')
-rw-r--r-- | template/en/default/request/queue.html.tmpl | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 9ba8cbc45..261db0438 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -81,12 +81,28 @@ to some group are shown by default. </td> <th>Product:</th> <td> - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "Any" - onchange => "selectProduct(this, this.form.component, null, null, 'Any');" - %] + <select name="product" onchange="selectProduct(this, this.form.component, null, null, 'Any');"> + <option value="">Any</option> + [% IF Param('useclassification') %] + [% FOREACH c = user.get_selectable_classifications %] + <optgroup label="[% c.name FILTER html %]"> + [% FOREACH p = user.get_selectable_products(c.id) %] + <option value="[% p.name FILTER html %]" + [% " selected" IF cgi.param('product') == p.name %]> + [% p.name FILTER html %] + </option> + [% END %] + </optgroup> + [% END %] + [% ELSE %] + [% FOREACH p = user.get_selectable_products %] + <option value="[% p.name FILTER html %]" + [% " selected" IF cgi.param('product') == p.name %]> + [% p.name FILTER html %] + </option> + [% END %] + [% END %] + </select> </td> <th>Flag:</th> <td> |