diff options
author | lpsolit%gmail.com <> | 2009-06-25 03:01:18 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-06-25 03:01:18 +0200 |
commit | cb0d7389a091eb807d8a54e91d9487470ac362b3 (patch) | |
tree | 465355d373e81882050c86cf49cfe00985a12534 /template/en/default/admin/custom_fields/list.html.tmpl | |
parent | 0ccecfb569714e133ffedbc0eb9a7a88c5abba19 (diff) | |
download | bugzilla-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar.gz bugzilla-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar.xz |
Bug 304267: Large lists in admin pages fail to display (they take too much time) - Patch by Michael Thomas <mockodin@gmail.com> r/a=LpSolit
Diffstat (limited to 'template/en/default/admin/custom_fields/list.html.tmpl')
-rw-r--r-- | template/en/default/admin/custom_fields/list.html.tmpl | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/template/en/default/admin/custom_fields/list.html.tmpl b/template/en/default/admin/custom_fields/list.html.tmpl index 6f2e68be7..dd266c759 100644 --- a/template/en/default/admin/custom_fields/list.html.tmpl +++ b/template/en/default/admin/custom_fields/list.html.tmpl @@ -68,27 +68,25 @@ [% custom_fields = Bugzilla.get_fields({ custom => 1 }) %] [%# We want to display the type name of fields, not their type ID. %] -[% overrides.type = [] %] +[% overrides.type = {} %] [% FOREACH field_type = field_types.keys %] - [% overrides.type.push({ - match_value => field_type - match_field => 'type' + [% overrides.type.type.$field_type = { override_content => 1 - content => field_types.${field_type} - }) + content => field_types.$field_type + } %] [% END %] -[% overrides.action = [ { - match_value => 1 - match_field => 'obsolete' - override_content => 1 - content => "Delete" - override_contentlink => 1 - contentlink => delete_contentlink - } ] +[% overrides.action.obsolete = { + "1" => { + override_content => 1 + content => "Delete" + override_contentlink => 1 + contentlink => delete_contentlink + } + } %] [% PROCESS admin/table.html.tmpl |