summaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2003-06-24 03:01:35 +0200
committermyk%mozilla.org <>2003-06-24 03:01:35 +0200
commitda6143f4aae6af35f60b8230b82f649b3b0cbd05 (patch)
tree0836c9c54e5434471a77eaa00c4447da3e60804a /config.cgi
parent9da012f1026019ade284e4d08c63f9d39993777f (diff)
downloadbugzilla-da6143f4aae6af35f60b8230b82f649b3b0cbd05.tar.gz
bugzilla-da6143f4aae6af35f60b8230b82f649b3b0cbd05.tar.xz
Fix for bug 204631: enhances config.cgi to generate a list of queryable fields so third-party clients can populate search forms with the list.
r=gerv a=myk
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.cgi b/config.cgi
index d1ad3cdc9..a02ff8c7b 100755
--- a/config.cgi
+++ b/config.cgi
@@ -87,6 +87,9 @@ foreach my $status (@::legal_bug_status) {
$vars->{'open_status'} = \@open_status;
$vars->{'closed_status'} = \@closed_status;
+# Generate a list of fields that can be queried.
+$vars->{'field'} = [GetFieldDefs()];
+
# Determine how the user would like to receive the output;
# default is JavaScript.
my $format = GetFormat("config", $::FORM{'format'}, $::FORM{'ctype'} || "js");