diff options
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 4 |
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}); |