summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2003-12-09 08:13:35 +0100
committergerv%gerv.net <>2003-12-09 08:13:35 +0100
commit26b1242d9b5c322c1bd309aef980c743c21798aa (patch)
tree4f057c936263aede01228fe3c0b2a7b73e8b699c /checksetup.pl
parentd001808d4dbf77199214e4d4a74fa9aa40d4c9a1 (diff)
downloadbugzilla-26b1242d9b5c322c1bd309aef980c743c21798aa.tar.gz
bugzilla-26b1242d9b5c322c1bd309aef980c743c21798aa.tar.xz
Bug 227771 - Migration and product/component create code no longer writes series to database. Patch by gerv; r=kiko, a=justdave.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index eae9e39bc..9b368b9b8 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -3727,9 +3727,10 @@ if (!$series_exists) {
foreach my $field (@fields) {
# Create a Series for each field in this product
- my $series = new Bugzilla::Series($product, $all_name,
+ my $series = new Bugzilla::Series(undef, $product, $all_name,
$field, $::userid, 1,
$queries{$field}, 1);
+ $series->writeToDatabase();
$seriesids{$field} = $series->{'series_id'};
}
@@ -3737,9 +3738,10 @@ if (!$series_exists) {
# the same set as new products (see editproducts.cgi.)
my @openedstatuses = ("UNCONFIRMED", "NEW", "ASSIGNED", "REOPENED");
my $query = join("&", map { "bug_status=$_" } @openedstatuses);
- my $series = new Bugzilla::Series($product, $all_name,
+ my $series = new Bugzilla::Series(undef, $product, $all_name,
$open_name, $::userid, 1,
$query_prod . $query, 1);
+ $series->writeToDatabase();
# Now, we attempt to read in historical data, if any
# Convert the name in the same way that collectstats.pl does