summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
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 = (
{