summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-03 16:36:43 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-03 16:36:43 +0200
commit52ff6aa09dc77100b2b5a9bd696d2042d7573e94 (patch)
tree3bca8e05bcf09ddeba515e2b4a1f12164bd9625b /Bugzilla/Config
parenta29f798a2506ec2b57cd4f7ebbdaf58387e6e490 (diff)
downloadbugzilla-52ff6aa09dc77100b2b5a9bd696d2042d7573e94.tar.gz
bugzilla-52ff6aa09dc77100b2b5a9bd696d2042d7573e94.tar.xz
Fix bustage due to bug 1007605 (checksetup.pl crashes when installing Bugzilla)
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r--Bugzilla/Config/BugChange.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla/Config/BugChange.pm b/Bugzilla/Config/BugChange.pm
index 2a225b794..986a74485 100644
--- a/Bugzilla/Config/BugChange.pm
+++ b/Bugzilla/Config/BugChange.pm
@@ -32,8 +32,13 @@ sub get_param_list {
};
my $resolution_field = Bugzilla::Field->new({ name => 'resolution', cache => 1 });
- # The empty resolution is included - it represents "no value"
- my @resolutions = map {$_->name} @{ $resolution_field->legal_values };
+ 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"
+ @resolutions = map {$_->name} @{ $resolution_field->legal_values };
+ }
my @param_list = (
{