]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix bustage due to bug 1007605 (checksetup.pl crashes when installing Bugzilla)
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 3 Apr 2015 14:36:43 +0000 (16:36 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 3 Apr 2015 14:36:43 +0000 (16:36 +0200)
Bugzilla/Config/BugChange.pm

index 2a225b794f66aca020c7769920f25793e9936713..986a74485c6263b7adb477c68701937a20b167e3 100644 (file)
@@ -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 = (
   {