From 3223b9f1872063b0c1ba864880449e40c68d590d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 6 Sep 2005 03:41:20 +0000 Subject: Bug 304745: Move GetFieldID() out of globals.pl - Patch by Frédéric Buclin r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 42f6da749..55113f641 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -44,6 +44,7 @@ use Bugzilla::Util; use Bugzilla::Constants; use Bugzilla::Group; use Bugzilla::User; +use Bugzilla::Field; use Date::Format; use Date::Parse; @@ -312,7 +313,7 @@ sub init { push(@l, "bugs.creation_ts <= $sql_chto") if($sql_chto); $bug_creation_clause = "(" . join(' AND ', @l) . ")"; } else { - push(@list, "\nactcheck.fieldid = " . &::GetFieldID($f)); + push(@list, "\nactcheck.fieldid = " . get_field_id($f)); } } @@ -998,7 +999,7 @@ sub init { } my $cutoff = "NOW() - " . $dbh->sql_interval("$quantity $unitinterval"); - my $assigned_fieldid = &::GetFieldID('assigned_to'); + my $assigned_fieldid = get_field_id('assigned_to'); push(@supptables, "LEFT JOIN longdescs AS comment_$table " . "ON comment_$table.who = bugs.assigned_to " . "AND comment_$table.bug_id = bugs.bug_id " . -- cgit v1.2.3-24-g4f1b