RSS

(root)/bugzilla/3.6 : 7123 : template/en/default/admin/components/list.html.tmpl

To get this branch, use:
bzr branch /bugzilla/3.6

« back to all changes in this revision

Viewing changes to template/en/default/admin/components/list.html.tmpl

Max Kanat-Alexander
2010-07-06 17:38:04
Revision ID: mkanat@bugzilla.org-20100707003804-l1sv1znhpz4kgmzl
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

Show diffs side-by-side

added added

removed removed

89
89
[% overrides.initialowner = {} %]
90
90
[% overrides.initialqacontact = {} %]
91
91
 
92
 
[% FOREACH component = product.components %]
93
 
  [% overrides.initialowner.name.${component.name} = {
 
92
[%# "component" is a reserved word in Template Toolkit. %]
 
93
[% FOREACH my_component = product.components %]
 
94
  [% overrides.initialowner.name.${my_component.name} = {
94
95
       override_content => 1
95
 
       content => component.default_assignee.login
 
96
       content => my_component.default_assignee.login
96
97
     }
97
98
  %]
98
 
  [% overrides.initialqacontact.name.${component.name} = {
 
99
  [% overrides.initialqacontact.name.${my_component.name} = {
99
100
       override_content => 1
100
 
       content => component.default_qa_contact.login
 
101
       content => my_component.default_qa_contact.login
101
102
     }
102
103
  %]
103
104
[% END %]

Loggerhead 1.18.1 is a web-based interface for Bazaar branches