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
git-svn-id: svn://10.0.0.236/trunk@198578 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user