]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 360489: Can't locate object method "type_name" via package "Bugzilla::Field"...
authorlpsolit%gmail.com <>
Tue, 14 Nov 2006 09:18:37 +0000 (09:18 +0000)
committerlpsolit%gmail.com <>
Tue, 14 Nov 2006 09:18:37 +0000 (09:18 +0000)
template/en/default/admin/custom_fields/list.html.tmpl

index 2f64b0f06405415e3b9f501d3586915859132012..befd1575302c69e0d8f5966c7835387d6f1f5e6d 100644 (file)
@@ -37,7 +37,7 @@
        heading => "Sortkey"
      },
      {
-       name => "type_name"
+       name => "type"
        heading => "Type"
      },
      {
 [% custom_fields = Bugzilla.get_fields({ custom => 1 }) %]
 
 [%# We want to display the type name of fields, not their type ID. %]
-[% FOREACH cf_field = custom_fields %]
-  [% cf_field.type_name = field_types.${cf_field.type} %]
+[% overrides.type = [] %]
+
+[% FOREACH field_type = field_types.keys %]
+  [% overrides.type.push({
+       match_value => field_type
+       match_field => 'type'
+       override_content => 1
+       content => field_types.${field_type}
+    })
+  %]
 [% END %]
 
 [% PROCESS admin/table.html.tmpl
      columns = columns
+     overrides = overrides
      data = custom_fields
 %]