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/fieldvalues/list.html.tmpl | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'template/en/default/admin/fieldvalues') diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl index 976b58ae7..fdc22d912 100644 --- a/template/en/default/admin/fieldvalues/list.html.tmpl +++ b/template/en/default/admin/fieldvalues/list.html.tmpl @@ -59,27 +59,23 @@ %] -[% SET overrides.action = [] %] +[% SET overrides.action = {} %] [% FOREACH check_value = values %] - [% IF check_value.is_static %] - [% overrides.action.push({ - match_value => check_value.name - match_field => 'name' + [% overrides.action.name.${check_value.name} = { override_content => 1 content => "(Non-deletable value)" override_contentlink => 1 contentlink => undef - }) + } %] [% ELSIF check_value.is_default %] - [% overrides.action.push({ - match_value => check_value.name - match_field => 'name' - override_content => 1 - content => "(Default value)" - override_contentlink => 1 - contentlink => undef }) + [% overrides.action.name.${check_value.name} = { + override_content => 1 + content => "(Default value)" + override_contentlink => 1 + contentlink => undef + } %] [% END %] -- cgit v1.2.3-24-g4f1b