From 461d51d5078bd9971593296dbc35d3e37e48df9b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 10 Apr 2009 09:36:43 +0000 Subject: Bug 471871: Bugzilla::Version has duplicated code compared to Bugzilla::Object (make Bugzilla::Version really a subclass of Bugzilla::Object) - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Product.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Product.pm') diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 03ebe2639..488624c43 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -112,7 +112,7 @@ sub create { my $product = $class->insert_create_data($params); # Add the new version and milestone into the DB as valid values. - Bugzilla::Version::create($version, $product); + Bugzilla::Version->create({name => $version, product => $product}); Bugzilla::Milestone->create({name => $params->{defaultmilestone}, product => $product}); # Create groups and series for the new product, if requested. -- cgit v1.2.3-24-g4f1b