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

git-svn-id: svn://10.0.0.236/trunk@265899 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org 2015-04-03 14:45:51 +00:00
parent be99f96a17
commit 1379fd18cf
3 changed files with 9 additions and 4 deletions

View File

@ -1 +1 @@
9353 9354

View File

@ -1 +1 @@
a29f798a2506ec2b57cd4f7ebbdaf58387e6e490 52ff6aa09dc77100b2b5a9bd696d2042d7573e94

View File

@ -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 });
my @resolutions = ();
# 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" # The empty resolution is included - it represents "no value"
my @resolutions = map {$_->name} @{ $resolution_field->legal_values }; @resolutions = map {$_->name} @{ $resolution_field->legal_values };
}
my @param_list = ( my @param_list = (
{ {