summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-04-20 16:49:44 +0200
committerlpsolit%gmail.com <>2008-04-20 16:49:44 +0200
commitaea95887f82a6066ebadb99068d94ef05087909b (patch)
tree6434d160002a9d337937761e25bd5f84049b24b3 /Bugzilla
parent6851239b32ae7dff2252e8b0928bd1bfd7142c08 (diff)
downloadbugzilla-aea95887f82a6066ebadb99068d94ef05087909b.tar.gz
bugzilla-aea95887f82a6066ebadb99068d94ef05087909b.tar.xz
Bug 429847: config.cgi should include additional information about custom fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB.pm40
1 files changed, 0 insertions, 40 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index d74284b27..1617b7fc2 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -383,26 +383,6 @@ sub bz_last_key {
$table, $column);
}
-sub bz_get_field_defs {
- my ($self) = @_;
-
- my $extra = "";
- if (!Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) {
- $extra = "AND name NOT IN ('estimated_time', 'remaining_time', " .
- "'work_time', 'percentage_complete', 'deadline')";
- }
-
- my @fields;
- my $sth = $self->prepare("SELECT name, description FROM fielddefs
- WHERE obsolete = 0 $extra
- ORDER BY sortkey");
- $sth->execute();
- while (my $field_ref = $sth->fetchrow_hashref()) {
- push(@fields, $field_ref);
- }
- return(@fields);
-}
-
#####################################################################
# Database Setup
#####################################################################
@@ -1273,9 +1253,6 @@ Bugzilla::DB - Database access routines, using L<DBI>
my $column = $dbh->bz_column_info($table, $column);
my $index = $dbh->bz_index_info($table, $index);
- # General Information
- my @fields = $dbh->bz_get_field_defs();
-
=head1 DESCRIPTION
Functions in this module allows creation of a database handle to connect
@@ -1949,23 +1926,6 @@ Last inserted ID (scalar)
=back
-=item C<bz_get_field_defs>
-
-=over
-
-=item B<Description>
-
-Returns a list of all the "bug" fields in Bugzilla. The list
-contains hashes, with a C<name> key and a C<description> key.
-
-=item B<Params> (none)
-
-=item B<Returns>
-
-List of all the "bug" fields
-
-=back
-
=back
=head2 Database Setup Methods