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 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'template/en/default/config.js.tmpl') 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 %] ]; -- cgit v1.2.3-24-g4f1b