summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-18 08:12:35 +0200
committerlpsolit%gmail.com <>2006-06-18 08:12:35 +0200
commit0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5 (patch)
tree03ab21ba894bffea01fb977c93b4ede6f553742f /Bugzilla
parentd9548f66b0f47af651f8fa62fa69cc7e65df0a60 (diff)
downloadbugzilla-0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5.tar.gz
bugzilla-0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5.tar.xz
Bug 338796: Remove get_product_* from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 7bfefd628..af0bf9027 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::Product;
use Bugzilla::Component;
use Bugzilla::Mailer;
@@ -135,8 +136,9 @@ sub ProcessOneBug {
lastdiffed AS start, LOCALTIMESTAMP(0) AS end
FROM bugs WHERE bug_id = ?',
undef, $id)};
-
- $values{product} = &::get_product_name($values{product_id});
+
+ my $product = new Bugzilla::Product($values{product_id});
+ $values{product} = $product->name;
my $component = new Bugzilla::Component($values{component_id});
$values{component} = $component->name;