aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-07-02 10:57:56 +1000
committerSimon Green <sgreen@redhat.com>2014-07-02 10:57:56 +1000
commitdbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab (patch)
treeec8050e17963b99dfeca3ea7fa24bcaba4e190c1 /template
parenta9081c21ce2e94410374692464b4026daf2656ae (diff)
downloadbugs-dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab.tar
bugs-dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab.tar.gz
bugs-dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab.tar.bz2
bugs-dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab.tar.xz
bugs-dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab.zip
Bug 1020821 - Product drop down orders classifications alphabetically
r=gkl, a=glob
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/product-select.html.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/en/default/global/product-select.html.tmpl b/template/en/default/global/product-select.html.tmpl
index ba5ce73b4..23a7b3d58 100644
--- a/template/en/default/global/product-select.html.tmpl
+++ b/template/en/default/global/product-select.html.tmpl
@@ -63,8 +63,10 @@
[% END %]
[% END %]
[% END %]
- [% FOREACH c = classifications.keys.sort %]
- <optgroup label="[% c FILTER html %]">
+
+ [% FOREACH c = all_classifications %]
+ [% NEXT UNLESS classifications.${c}.size %]
+ <optgroup label="[% c FILTER html %]">
[% FOREACH p = classifications.$c %]
<option value="[% p.$valueattribute FILTER html %]"
[% " selected" IF (cgi.param(name) == p.name) || (value.contains(p.name)) %]>