From: Frédéric Buclin Date: Mon, 17 Oct 2016 21:43:31 +0000 (+0000) Subject: Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the... X-Git-Tag: release-5.0.4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec6dada4bc0d26ca09ba26b169aff3be9575f99e;p=thirdparty%2Fbugzilla.git Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the user hasn't global editcomponents privs r/a=dkl --- 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; } }