Commit 350158b2 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 360489: Can't locate object method "type_name" via package "Bugzilla::Field"…

Bug 360489: Can't locate object method "type_name" via package "Bugzilla::Field" when listing custom fields - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 410641cc
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
heading => "Sortkey" heading => "Sortkey"
}, },
{ {
name => "type_name" name => "type"
heading => "Type" heading => "Type"
}, },
{ {
...@@ -59,12 +59,21 @@ ...@@ -59,12 +59,21 @@
[% custom_fields = Bugzilla.get_fields({ custom => 1 }) %] [% custom_fields = Bugzilla.get_fields({ custom => 1 }) %]
[%# We want to display the type name of fields, not their type ID. %] [%# We want to display the type name of fields, not their type ID. %]
[% FOREACH cf_field = custom_fields %] [% overrides.type = [] %]
[% cf_field.type_name = field_types.${cf_field.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 %] [% END %]
[% PROCESS admin/table.html.tmpl [% PROCESS admin/table.html.tmpl
columns = columns columns = columns
overrides = overrides
data = custom_fields data = custom_fields
%] %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment