]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 374981: Custom field single select options not available in config.cgi rdf -...
authorlpsolit%gmail.com <>
Sat, 6 Oct 2007 03:54:41 +0000 (03:54 +0000)
committerlpsolit%gmail.com <>
Sat, 6 Oct 2007 03:54:41 +0000 (03:54 +0000)
config.cgi
template/en/default/config.js.tmpl
template/en/default/config.rdf.tmpl

index c320ae5156c9d758b41079987e33c6d4dc90af28..29d1cb8cb57b51eb5c4f36e7e79907985da523f7 100755 (executable)
@@ -55,6 +55,9 @@ $vars->{'op_sys'}    = get_legal_field_values('op_sys');
 $vars->{'keyword'}    = [map($_->name, Bugzilla::Keyword->get_all)];
 $vars->{'resolution'} = get_legal_field_values('resolution');
 $vars->{'status'}    = get_legal_field_values('bug_status');
+$vars->{'custom_fields'} =
+  [Bugzilla->get_fields({custom => 1, obsolete => 0, type => FIELD_TYPE_SINGLE_SELECT}),
+   Bugzilla->get_fields({custom => 1, obsolete => 0, type => FIELD_TYPE_MULTI_SELECT})];
 
 # Include a list of product objects.
 if ($cgi->param('product')) {
index e55e0d9107fad31c8cb3658aeedec3f81ece6f73..628a918d0203be973522d08d8a1f687e9782d9ed 100644 (file)
@@ -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
 // =======================
 //
index a7e43227a05252d06181c602af0f9e724ae45df1..4b500499277d05bd90419b67091fbf0e37e4b562 100644 (file)
     </Seq>
   </bz:severity>
 
+[% FOREACH cf = custom_fields %]
+  <bz:[% cf.name FILTER html %]>
+    <Seq>
+      [% FOREACH item = cf.legal_values %]
+        <li>[% item FILTER html %]</li>
+      [% END %]
+    </Seq>
+  </bz:[% cf.name FILTER html %]>
+
+[% END %]
+
   <bz:products>
     <Seq>
       [% FOREACH product = products %]