Commit cdb01862 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 238506: Fix checksetup.pl so that it does not fail if an upgrading site…

Bug 238506: Fix checksetup.pl so that it does not fail if an upgrading site never changed a groupset r=justdave, a=justdave
parent ec4dad54
......@@ -3499,6 +3499,7 @@ if (GetFieldDef("profiles", "groupset")) {
$sth->execute();
my ($gsid) = $sth->fetchrow_array;
# Get all bugs_activity records from groupset changes
if ($gsid) {
$sth = $dbh->prepare("SELECT bug_id, bug_when, who, added, removed
FROM bugs_activity WHERE fieldid = $gsid");
$sth->execute();
......@@ -3582,7 +3583,7 @@ if (GetFieldDef("profiles", "groupset")) {
" AND who = $uwho AND fieldid = $gsid");
}
}
# Identify admin group.
my $sth = $dbh->prepare("SELECT id FROM groups
WHERE name = 'admin'");
......
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