]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 17 Oct 2016 21:43:31 +0000 (21:43 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Mon, 17 Oct 2016 21:43:31 +0000 (21:43 +0000)
r/a=dkl

editflagtypes.cgi

index d0b9443b59492a61ddcee28d53123e17323fe01a..71f7cb65558ac8bdf500d35e5980023ed68611d3 100755 (executable)
@@ -453,7 +453,7 @@ sub get_products_and_components {
 
             # Let's sort the list by classifications.
             @products = ();
-            push(@products, @{$class{$_->id}}) foreach Bugzilla::Classification->get_all;
+            push(@products, @{$class{$_->id} || []}) foreach Bugzilla::Classification->get_all;
         }
     }