From aea95887f82a6066ebadb99068d94ef05087909b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 20 Apr 2008 14:49:44 +0000 Subject: Bug 429847: config.cgi should include additional information about custom fields - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/config.js.tmpl | 9 ++++++++- template/en/default/config.rdf.tmpl | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'template/en') diff --git a/template/en/default/config.js.tmpl b/template/en/default/config.js.tmpl index 628a918d0..66617007d 100644 --- a/template/en/default/config.js.tmpl +++ b/template/en/default/config.js.tmpl @@ -113,7 +113,14 @@ var component_exceptions = new Array( var field = [ [% FOREACH x = field %] { name: '[% x.name FILTER js %]', - description: '[% (field_descs.${x.name} OR x.description) FILTER js %]' }, + description: '[% (field_descs.${x.name} OR x.description) FILTER js %]', + [%-# These values are meaningful for custom fields only. %] + [% IF x.custom %] + type: '[% x.type FILTER js %]', + type_desc: '[% field_types.${x.type} FILTER js %]', + enter_bug: '[% x.enter_bug FILTER js %]', + [% END %] + }, [% END %] ]; diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index 99850fa71..8d2c5a282 100644 --- a/template/en/default/config.rdf.tmpl +++ b/template/en/default/config.rdf.tmpl @@ -204,6 +204,12 @@ [% item.name FILTER html %] [% (field_descs.${item.name} OR item.description) FILTER html %] + [%-# These values are meaningful for custom fields only. %] + [% IF item.custom %] + [% item.type FILTER html %] + [% field_types.${item.type} FILTER html %] + [% item.enter_bug FILTER html %] + [% END %] [% END %] -- cgit v1.2.3-24-g4f1b