From 9e865838666f08c5505c1028a346f871559dbd90 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 2 Feb 2005 00:26:25 +0000 Subject: Bug 279748 : Move GetFieldDefs out of globals.pl (to Bugzilla::DB) Patch by Max Kanat-Alexander r=vladd a=justdave --- globals.pl | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index c97467b36..1529a0f6a 100644 --- a/globals.pl +++ b/globals.pl @@ -636,26 +636,6 @@ sub GetSelectableClassifications { return (@selectable_classes); } -sub GetFieldDefs { - my $extra = ""; - if (!UserInGroup(Param('timetrackinggroup'))) { - $extra = "WHERE name NOT IN ('estimated time', 'remaining_time', " . - "'work_time', 'percentage_complete', 'deadline')"; - } - - my @fields; - PushGlobalSQLState(); - SendSQL("SELECT name, description FROM fielddefs $extra ORDER BY sortkey"); - while (MoreSQLData()) { - my ($name, $description) = FetchSQLData(); - push(@fields, { name => $name, description => $description }); - } - PopGlobalSQLState(); - - return(@fields); -} - - sub ValidatePassword { # Determines whether or not a password is valid (i.e. meets Bugzilla's -- cgit v1.2.3-24-g4f1b