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 --- template/en/default/admin/components/list.html.tmpl | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'template/en/default/admin/components') diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index 990b07997..d4bf11748 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -86,23 +86,19 @@ }) %] [%# Overrides the initialowner and the initialqacontact with right values %] -[% overrides.initialowner = [] %] -[% overrides.initialqacontact = [] %] +[% overrides.initialowner = {} %] +[% overrides.initialqacontact = {} %] [% FOREACH component = product.components %] - [% overrides.initialowner.push({ - match_value => component.name - match_field => 'name' + [% overrides.initialowner.name.${component.name} = { override_content => 1 content => component.default_assignee.login - }) + } %] - [% overrides.initialqacontact.push({ - match_value => component.name - match_field => 'name' + [% overrides.initialqacontact.name.${component.name} = { override_content => 1 content => component.default_qa_contact.login - }) + } %] [% END %] -- cgit v1.2.3-24-g4f1b