diff options
author | lpsolit%gmail.com <> | 2005-09-06 05:41:20 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-06 05:41:20 +0200 |
commit | 3223b9f1872063b0c1ba864880449e40c68d590d (patch) | |
tree | 53446ca60ec5aafe33236b979f24a8d57dc009a7 /Bugzilla/Search.pm | |
parent | d14f5d4e1330aa4efee97b7b83381619980a6819 (diff) | |
download | bugzilla-3223b9f1872063b0c1ba864880449e40c68d590d.tar.gz bugzilla-3223b9f1872063b0c1ba864880449e40c68d590d.tar.xz |
Bug 304745: Move GetFieldID() out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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 " . |