From 9ecc858489649755b2d4e90c54a59f038551c418 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 6 Oct 2007 03:54:41 +0000 Subject: Bug 374981: Custom field single select options not available in config.cgi rdf - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/config.js.tmpl | 8 ++++++++ template/en/default/config.rdf.tmpl | 11 +++++++++++ 2 files changed, 19 insertions(+) (limited to 'template/en') diff --git a/template/en/default/config.js.tmpl b/template/en/default/config.js.tmpl index e55e0d910..628a918d0 100644 --- a/template/en/default/config.js.tmpl +++ b/template/en/default/config.js.tmpl @@ -57,6 +57,14 @@ var platform = [ [% FOREACH x = platform %]'[% x FILTER js %]', [% END %] ] var severity = [ [% FOREACH x = severity %]'[% x FILTER js %]', [% END %] ]; +// Custom Fields +// ============= + +[% FOREACH cf = custom_fields %] +var [% cf.name FILTER js %] = [ [% FOREACH x = cf.legal_values %]'[% x FILTER js %]', [% END %] ]; +[% END %] + + // Products and Components // ======================= // diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index a7e43227a..4b5004992 100644 --- a/template/en/default/config.rdf.tmpl +++ b/template/en/default/config.rdf.tmpl @@ -102,6 +102,17 @@ +[% FOREACH cf = custom_fields %] + + + [% FOREACH item = cf.legal_values %] +
  • [% item FILTER html %]
  • + [% END %] +
    +
    + +[% END %] + [% FOREACH product = products %] -- cgit v1.2.3-24-g4f1b