summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Flag.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-06 05:41:20 +0200
committerlpsolit%gmail.com <>2005-09-06 05:41:20 +0200
commit3223b9f1872063b0c1ba864880449e40c68d590d (patch)
tree53446ca60ec5aafe33236b979f24a8d57dc009a7 /Bugzilla/Flag.pm
parentd14f5d4e1330aa4efee97b7b83381619980a6819 (diff)
downloadbugzilla-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/Flag.pm')
-rw-r--r--Bugzilla/Flag.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 89dda08a5..34ded7dd2 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -72,6 +72,7 @@ use Bugzilla::Error;
use Bugzilla::Attachment;
use Bugzilla::BugMail;
use Bugzilla::Constants;
+use Bugzilla::Field;
# Note that this line doesn't actually import these variables for some reason,
# so I have to use them as $::template and $::vars in the package code.
@@ -500,7 +501,7 @@ sub update_activity {
if ($removed ne $added) {
my $sql_removed = &::SqlQuote($removed);
my $sql_added = &::SqlQuote($added);
- my $field_id = &::GetFieldID('flagtypes.name');
+ my $field_id = get_field_id('flagtypes.name');
$dbh->do("INSERT INTO bugs_activity
(bug_id, attach_id, who, bug_when, fieldid, removed, added)
VALUES ($bug_id, $attach_id, $::userid, $timestamp,