]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 576911 The admin/components/list.html template was using "component"
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 7 Jul 2010 00:38:04 +0000 (17:38 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 7 Jul 2010 00:38:04 +0000 (17:38 -0700)
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

index 0161ee6f22bad5cd8be56861895d6f95dc5ab184..632d47e6ecce61c89c6ce40afc119549bdf5f70b 100644 (file)
 [% 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 %]