diff options
author | myk%mozilla.org <> | 2003-06-24 03:01:35 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2003-06-24 03:01:35 +0200 |
commit | da6143f4aae6af35f60b8230b82f649b3b0cbd05 (patch) | |
tree | 0836c9c54e5434471a77eaa00c4447da3e60804a /query.cgi | |
parent | 9da012f1026019ade284e4d08c63f9d39993777f (diff) | |
download | bugzilla-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 'query.cgi')
-rwxr-xr-x | query.cgi | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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 |