From ec6dada4bc0d26ca09ba26b169aff3be9575f99e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 17 Oct 2016 21:43:31 +0000 Subject: [PATCH] Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the user hasn't global editcomponents privs r/a=dkl --- editflagtypes.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editflagtypes.cgi b/editflagtypes.cgi index d0b9443b59..71f7cb6555 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -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; } } -- 2.47.2