Commit ef414f2b authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

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
parent 333b8fcb
......@@ -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 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment