diff options
author | lpsolit%gmail.com <> | 2009-04-10 09:36:43 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-04-10 09:36:43 +0000 |
commit | 461d51d5078bd9971593296dbc35d3e37e48df9b (patch) | |
tree | eaf3ebb004f28d3a3e91f6f7f1f9d81cca89bbe6 /Bugzilla/Product.pm | |
parent | Fix a warning thrown in the web server error log (due to bug 454251) (diff) | |
download | bugzilla-461d51d5078bd9971593296dbc35d3e37e48df9b.tar.gz bugzilla-461d51d5078bd9971593296dbc35d3e37e48df9b.tar.bz2 bugzilla-461d51d5078bd9971593296dbc35d3e37e48df9b.zip |
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 <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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. |