summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2003-11-08 09:25:21 +0100
committergerv%gerv.net <>2003-11-08 09:25:21 +0100
commit7654b510a59a829d15798337ab4cc87a860013c9 (patch)
treebb97d819f4a0fc0bf25cd72844d4f8738c3c5b16 /checksetup.pl
parent496759fb381fc81832abfd9dd75f9dd29ae0ca3a (diff)
downloadbugzilla-7654b510a59a829d15798337ab4cc87a860013c9.tar.gz
bugzilla-7654b510a59a829d15798337ab4cc87a860013c9.tar.xz
Bug 222564 - The chart made when creating a new Product/Component is not public. Patch by gerv; r=kiko, a=justdave.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl10
1 files changed, 4 insertions, 6 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 15d5231fb..da8715c4d 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -3713,10 +3713,9 @@ if (!$series_exists) {
foreach my $field (@fields) {
# Create a Series for each field in this product
- my $series = new Bugzilla::Series(-1, $product, $all_name,
+ my $series = new Bugzilla::Series($product, $all_name,
$field, $::userid, 1,
- $queries{$field});
- $series->createInDatabase();
+ $queries{$field}, 1);
$seriesids{$field} = $series->{'series_id'};
}
@@ -3724,10 +3723,9 @@ 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(-1, $product, $all_name,
+ my $series = new Bugzilla::Series($product, $all_name,
$open_name, $::userid, 1,
- $query_prod . $query);
- $series->createInDatabase();
+ $query_prod . $query, 1);
# Now, we attempt to read in historical data, if any
# Convert the name in the same way that collectstats.pl does