aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-12 04:07:22 +0000
committerlpsolit%gmail.com <>2007-10-12 04:07:22 +0000
commit52abf10f5c2d745491a168d1a5f1030368628b3f (patch)
treebb549302c2c56e329302d61022080a71fe915bd7 /request.cgi
parentBug 399461: Bugzilla::Hook::process() doesn't flush Bugzilla->hook_args() aft... (diff)
downloadbugzilla-52abf10f5c2d745491a168d1a5f1030368628b3f.tar.gz
bugzilla-52abf10f5c2d745491a168d1a5f1030368628b3f.tar.bz2
bugzilla-52abf10f5c2d745491a168d1a5f1030368628b3f.zip
Bug 313123: Implement $component->create and $component->update based on Object.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/request.cgi b/request.cgi
index 886302d56..186b42e1c 100755
--- a/request.cgi
+++ b/request.cgi
@@ -196,8 +196,8 @@ sub queue {
push(@criteria, "bugs.product_id = " . $product->id);
push(@excluded_columns, 'product') unless $cgi->param('do_union');
if (defined $cgi->param('component') && $cgi->param('component') ne "") {
- my $component =
- Bugzilla::Component::check_component($product, scalar $cgi->param('component'));
+ my $component = Bugzilla::Component->check({ product => $product,
+ name => scalar $cgi->param('component') });
push(@criteria, "bugs.component_id = " . $component->id);
push(@excluded_columns, 'component') unless $cgi->param('do_union');
}