diff options
author | Simon Green <sgreen@redhat.com> | 2014-07-02 10:57:56 +1000 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2014-07-02 10:57:56 +1000 |
commit | dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab (patch) | |
tree | ec8050e17963b99dfeca3ea7fa24bcaba4e190c1 /Bugzilla | |
parent | a9081c21ce2e94410374692464b4026daf2656ae (diff) | |
download | bugs-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 'Bugzilla')
-rw-r--r-- | Bugzilla/Template.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index cf337d9fc..d1457a4fa 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -17,6 +17,7 @@ use Bugzilla::Hook; use Bugzilla::Install::Requirements; use Bugzilla::Install::Util qw(install_string template_include_path include_languages); +use Bugzilla::Classification; use Bugzilla::Keyword; use Bugzilla::Util; use Bugzilla::Error; @@ -1018,6 +1019,11 @@ sub create { 'css_files' => \&css_files, yui_resolve_deps => \&yui_resolve_deps, + # All classifications (sorted by sortkey, name) + 'all_classifications' => sub { + return [map { $_->name } Bugzilla::Classification->get_all()]; + }, + # Whether or not keywords are enabled, in this Bugzilla. 'use_keywords' => sub { return Bugzilla::Keyword->any_exist; }, |