summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-10-17 23:40:21 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-10-17 23:40:21 +0200
commit7d445a428fc4731006b3743be922a17d84e5155d (patch)
treee16ec9341e0ed057a35433672da4adfcf614678a
parent0fcb110a32cbf571db7c3c26e2a0658ebea4daf8 (diff)
downloadbugzilla-7d445a428fc4731006b3743be922a17d84e5155d.tar.gz
bugzilla-7d445a428fc4731006b3743be922a17d84e5155d.tar.xz
Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the user hasn't global editcomponents privs
r=dkl
-rwxr-xr-xeditflagtypes.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index ba2d4891b..c01bade4a 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;
}
}