diff options
author | lpsolit%gmail.com <> | 2008-02-25 23:06:24 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-25 23:06:24 +0100 |
commit | 816eb1e9bd788b2b3468481281793639c824996d (patch) | |
tree | 9e272644a04e3dec038785e4d819ff9fe25fe1e6 /config.cgi | |
parent | 8ef50bdaba56ee100821c51ff141e00d26723dc7 (diff) | |
download | bugzilla-816eb1e9bd788b2b3468481281793639c824996d.tar.gz bugzilla-816eb1e9bd788b2b3468481281793639c824996d.tar.xz |
Bug 415652: Implement Bugzilla->active_custom_fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'config.cgi')
-rwxr-xr-x | config.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config.cgi b/config.cgi index ad8dbf0fe..026b070d6 100755 --- a/config.cgi +++ b/config.cgi @@ -56,8 +56,8 @@ $vars->{'keyword'} = [map($_->name, Bugzilla::Keyword->get_all)]; $vars->{'resolution'} = get_legal_field_values('resolution'); $vars->{'status'} = get_legal_field_values('bug_status'); $vars->{'custom_fields'} = - [Bugzilla->get_fields({custom => 1, obsolete => 0, type => FIELD_TYPE_SINGLE_SELECT}), - Bugzilla->get_fields({custom => 1, obsolete => 0, type => FIELD_TYPE_MULTI_SELECT})]; + [ grep {$_->type == FIELD_TYPE_SINGLE_SELECT || $_->type == FIELD_TYPE_MULTI_SELECT} + Bugzilla->active_custom_fields ]; # Include a list of product objects. if ($cgi->param('product')) { |