aboutsummaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-12-19 14:39:28 +0000
committermkanat%bugzilla.org <>2006-12-19 14:39:28 +0000
commitb7c87a7217ea157c1305526e6d62c94d5ef8d36f (patch)
treea942b707cbc40dafc52de0cb8dace9cd7c73e82d /editcomponents.cgi
parent6255b0849421911afd419077f50de44f4ed9a1d8 (diff)
downloadbugs-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar
bugs-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.gz
bugs-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.bz2
bugs-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.xz
bugs-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.zip
Bug 339380: Make Bugzilla::Component use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi6
1 files changed, 3 insertions, 3 deletions
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',