From da6143f4aae6af35f60b8230b82f649b3b0cbd05 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 24 Jun 2003 01:01:35 +0000 Subject: 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 --- query.cgi | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index e450898da..2a8051b6b 100755 --- a/query.cgi +++ b/query.cgi @@ -314,19 +314,7 @@ $vars->{'bug_severity'} = \@::legal_severity; # Boolean charts my @fields; push(@fields, { name => "noop", description => "---" }); -SendSQL("SELECT name, description FROM fielddefs ORDER BY sortkey"); -while (MoreSQLData()) { - my ($name, $description) = FetchSQLData(); - if (($name eq "estimated_time" || - $name eq "remaining_time" || - $name eq "work_time" || - $name eq "percentage_complete" ) && - (!UserInGroup(Param('timetrackinggroup')))) { - next; - } - push(@fields, { name => $name, description => $description }); -} - +push(@fields, GetFieldDefs()); $vars->{'fields'} = \@fields; # Creating new charts - if the cmd-add value is there, we define the field -- cgit v1.2.3-24-g4f1b