diff options
author | mkanat%bugzilla.org <> | 2009-06-21 21:36:52 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-06-21 21:36:52 +0200 |
commit | d57c8562fc0490d560b0c6b4c45d80a6e98bd7e5 (patch) | |
tree | 75d87d1bb99fc12da00669fad84d6cbe34dd320f /template/en/default/global | |
parent | 6a23b8335dd9e0786cf2c6ea90c8574ac0c6f28f (diff) | |
download | bugzilla-d57c8562fc0490d560b0c6b4c45d80a6e98bd7e5.tar.gz bugzilla-d57c8562fc0490d560b0c6b4c45d80a6e98bd7e5.tar.xz |
Bug 498318: Speed up field-descs.none.tmpl
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 6160784ee..2c70b11c6 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -91,14 +91,10 @@ Description here, by copying their Description from the database. If you want to override this for your language or your installation, just use a hook. %] -[%# Also create the bug_fields hash. %] [% UNLESS Param('shutdownhtml') %] - [% USE Bugzilla %] - [% SET bug_fields = {} %] - [% FOREACH bz_field = Bugzilla.get_fields() %] + [% FOREACH bz_field = bug_fields.values %] [% SET field_descs.${bz_field.name} = bz_field.description IF !field_descs.${bz_field.name}.defined %] - [% SET bug_fields.${bz_field.name} = bz_field %] [% END %] [% END %] |