summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-11-14 10:18:37 +0100
committerlpsolit%gmail.com <>2006-11-14 10:18:37 +0100
commit350158b2dea58146f8428561ddcb61fa34c8a47c (patch)
treee78ca3a02e1065d3b6fe30069e00dd0abf053405 /template/en
parent410641ccf4ed887b3988222678704a8c5569002d (diff)
downloadbugzilla-350158b2dea58146f8428561ddcb61fa34c8a47c.tar.gz
bugzilla-350158b2dea58146f8428561ddcb61fa34c8a47c.tar.xz
Bug 360489: Can't locate object method "type_name" via package "Bugzilla::Field" when listing custom fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/admin/custom_fields/list.html.tmpl15
1 files changed, 12 insertions, 3 deletions
diff --git a/template/en/default/admin/custom_fields/list.html.tmpl b/template/en/default/admin/custom_fields/list.html.tmpl
index 2f64b0f06..befd15753 100644
--- a/template/en/default/admin/custom_fields/list.html.tmpl
+++ b/template/en/default/admin/custom_fields/list.html.tmpl
@@ -37,7 +37,7 @@
heading => "Sortkey"
},
{
- name => "type_name"
+ name => "type"
heading => "Type"
},
{
@@ -59,12 +59,21 @@
[% 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
%]