From 350158b2dea58146f8428561ddcb61fa34c8a47c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 14 Nov 2006 09:18:37 +0000 Subject: =?UTF-8?q?Bug=20360489:=20Can't=20locate=20object=20method=20"typ?= =?UTF-8?q?e=5Fname"=20via=20package=20"Bugzilla::Field"=20when=20listing?= =?UTF-8?q?=20custom=20fields=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?UTF-8?q?=C2=A9ric=20Buclin=20=20r=3Dmkanat=20a=3Djus?= =?UTF-8?q?tdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/admin/custom_fields/list.html.tmpl | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'template/en/default/admin') 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 %] -- cgit v1.2.1