Commit 52ff6aa0 authored by Frédéric Buclin's avatar Frédéric Buclin

Fix bustage due to bug 1007605 (checksetup.pl crashes when installing Bugzilla)

parent a29f798a
...@@ -32,8 +32,13 @@ sub get_param_list { ...@@ -32,8 +32,13 @@ sub get_param_list {
}; };
my $resolution_field = Bugzilla::Field->new({ name => 'resolution', cache => 1 }); my $resolution_field = Bugzilla::Field->new({ name => 'resolution', cache => 1 });
# The empty resolution is included - it represents "no value" my @resolutions = ();
my @resolutions = map {$_->name} @{ $resolution_field->legal_values }; # The 'fielddefs' table is not yet populated when running checksetup.pl
# for the first time.
if ($resolution_field) {
# The empty resolution is included - it represents "no value"
@resolutions = map {$_->name} @{ $resolution_field->legal_values };
}
my @param_list = ( my @param_list = (
{ {
......
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