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:
lpsolit%gmail.com
2006-05-29 17:24:54 +00:00
parent 21c08159e5
commit d0abc2893d
8 changed files with 108 additions and 174 deletions

View File

@@ -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});