From b7c87a7217ea157c1305526e6d62c94d5ef8d36f Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 19 Dec 2006 14:39:28 +0000 Subject: Bug 339380: Make Bugzilla::Component use Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, a=myk --- editcomponents.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 17ad290c5..f28a87b7a 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -168,7 +168,7 @@ if ($action eq 'new') { } my $component = - new Bugzilla::Component({product_id => $product->id, + new Bugzilla::Component({product => $product, name => $comp_name}); if ($component) { @@ -200,7 +200,7 @@ if ($action eq 'new') { ($product->id, $comp_name, $description, $default_assignee_id, $default_qa_contact_id)); - $component = new Bugzilla::Component({ product_id => $product->id, + $component = new Bugzilla::Component({ product => $product, name => $comp_name }); my $sth = $dbh->prepare("INSERT INTO component_cc @@ -383,7 +383,7 @@ if ($action eq 'update') { if ($comp_name ne $component_old->name) { my $component = - new Bugzilla::Component({product_id => $product->id, + new Bugzilla::Component({product => $product, name => $comp_name}); if ($component) { ThrowUserError('component_already_exists', -- cgit v1.2.3-24-g4f1b