summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-30 02:24:53 +0200
committerlpsolit%gmail.com <>2006-05-30 02:24:53 +0200
commitd8f36cac89e6e054e884cbf54fbe130ec7424f9e (patch)
tree1deb3f27119b5a11c292e430ca2ec9813b6a4346 /Bugzilla
parent598ce63e0d2acbc3a2060fe13199742945fac342 (diff)
downloadbugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.gz
bugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.xz
Bug 337054: Remove get_component_id() and get_component_name() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index b2613466a..74e1145a7 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -38,6 +38,7 @@ use Bugzilla::Constants;
use Bugzilla::Config qw(:DEFAULT $datadir);
use Bugzilla::Util;
use Bugzilla::Bug;
+use Bugzilla::Component;
use Date::Parse;
use Date::Format;
@@ -141,7 +142,8 @@ sub ProcessOneBug {
undef, $id)};
$values{product} = &::get_product_name($values{product_id});
- $values{component} = &::get_component_name($values{component_id});
+ my $component = new Bugzilla::Component($values{component_id});
+ $values{component} = $component->name;
my ($start, $end) = ($values{start}, $values{end});