From ef414f2b12f7686ad830fb884f69865cdb41f6c0 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 6 Jul 2010 17:36:51 -0700 Subject: Bug 576911 The admin/components/list.html template was using "component" as a variable name, but "component" is a reserved word in Template Toolkit. This caused a warning from the template hook code. r=LpSolit, a=LpSolit --- template/en/default/admin/components/list.html.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'template/en/default/admin') diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index 0161ee6f2..632d47e6e 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -89,15 +89,16 @@ [% overrides.initialowner = {} %] [% overrides.initialqacontact = {} %] -[% FOREACH component = product.components %] - [% overrides.initialowner.name.${component.name} = { +[%# "component" is a reserved word in Template Toolkit. %] +[% FOREACH my_component = product.components %] + [% overrides.initialowner.name.${my_component.name} = { override_content => 1 - content => component.default_assignee.login + content => my_component.default_assignee.login } %] - [% overrides.initialqacontact.name.${component.name} = { + [% overrides.initialqacontact.name.${my_component.name} = { override_content => 1 - content => component.default_qa_contact.login + content => my_component.default_qa_contact.login } %] [% END %] -- cgit v1.2.1