From cb0d7389a091eb807d8a54e91d9487470ac362b3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 25 Jun 2009 01:01:18 +0000 Subject: Bug 304267: Large lists in admin pages fail to display (they take too much time) - Patch by Michael Thomas r/a=LpSolit --- .../en/default/admin/custom_fields/list.html.tmpl | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'template/en/default/admin/custom_fields/list.html.tmpl') 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 -- cgit v1.2.3-24-g4f1b