]> 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:40:21 +0000 (21:40 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Mon, 17 Oct 2016 21:40:21 +0000 (21:40 +0000)
r=dkl

editflagtypes.cgi

index ba2d4891b91e6b142cc58a36dfe568a13551e422..c01bade4a43183f860f2bd082647bcc08f6d8ebc 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;
         }
     }