summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-07 02:36:51 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-07 02:36:51 +0200
commitef414f2b12f7686ad830fb884f69865cdb41f6c0 (patch)
treef9677108a4c6866aff2052d3431a0145410f6e20 /template
parent333b8fcbaad05e5e3ab01a897529560dea37dd53 (diff)
downloadbugzilla-ef414f2b12f7686ad830fb884f69865cdb41f6c0.tar.gz
bugzilla-ef414f2b12f7686ad830fb884f69865cdb41f6c0.tar.xz
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
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/components/list.html.tmpl11
1 files changed, 6 insertions, 5 deletions
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 %]