diff options
author | lpsolit%gmail.com <> | 2008-04-20 16:49:44 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-04-20 16:49:44 +0200 |
commit | aea95887f82a6066ebadb99068d94ef05087909b (patch) | |
tree | 6434d160002a9d337937761e25bd5f84049b24b3 /template/en | |
parent | 6851239b32ae7dff2252e8b0928bd1bfd7142c08 (diff) | |
download | bugzilla-aea95887f82a6066ebadb99068d94ef05087909b.tar.gz bugzilla-aea95887f82a6066ebadb99068d94ef05087909b.tar.xz |
Bug 429847: config.cgi should include additional information about custom fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/config.js.tmpl | 9 | ||||
-rw-r--r-- | template/en/default/config.rdf.tmpl | 6 |
2 files changed, 14 insertions, 1 deletions
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 @@ <bz:field rdf:about="[% urlbase FILTER xml %]field.cgi?name=[% item.name FILTER url_quote %]"> <bz:name>[% item.name FILTER html %]</bz:name> <bz:description>[% (field_descs.${item.name} OR item.description) FILTER html %]</bz:description> + [%-# These values are meaningful for custom fields only. %] + [% IF item.custom %] + <bz:type>[% item.type FILTER html %]</bz:type> + <bz:type_desc>[% field_types.${item.type} FILTER html %]</bz:type_desc> + <bz:enter_bug>[% item.enter_bug FILTER html %]</bz:enter_bug> + [% END %] </bz:field> </li> [% END %] |