summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-02 01:26:25 +0100
committertravis%sedsystems.ca <>2005-02-02 01:26:25 +0100
commit9e865838666f08c5505c1028a346f871559dbd90 (patch)
treecfb1cea250e120dc6a6ae9e8104a6eb0c67da149 /globals.pl
parentb21f214cf515f005382183beb72d70e58e0a87e5 (diff)
downloadbugzilla-9e865838666f08c5505c1028a346f871559dbd90.tar.gz
bugzilla-9e865838666f08c5505c1028a346f871559dbd90.tar.xz
Bug 279748 : Move GetFieldDefs out of globals.pl (to Bugzilla::DB)
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl20
1 files changed, 0 insertions, 20 deletions
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