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