Bug 211758: checksetup.pl was trying to use params that didn't exist yet because…

Bug 211758: checksetup.pl was trying to use params that didn't exist yet because it was loading Bugzilla::Series at compile time (use). Now pulls in Bugzilla::Series at runtime (require) after initializing the params. Patch by Brad Roberts <braddr@puremagic.com> r= justdave, a= justdave
parent d6fe6257
...@@ -3577,7 +3577,7 @@ my $series_exists = $dbh->selectrow_array("SELECT 1 FROM series LIMIT 1"); ...@@ -3577,7 +3577,7 @@ my $series_exists = $dbh->selectrow_array("SELECT 1 FROM series LIMIT 1");
if (!$series_exists) { if (!$series_exists) {
print "Migrating old chart data into database ...\n" unless $silent; print "Migrating old chart data into database ...\n" unless $silent;
use Bugzilla::Series; require Bugzilla::Series;
# We prepare the handle to insert the series data # We prepare the handle to insert the series data
my$seriesdatasth = $dbh->prepare("INSERT INTO series_data " . my$seriesdatasth = $dbh->prepare("INSERT INTO series_data " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment