aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-10-17 21:43:31 +0000
committerDavid Lawrence <dkl@mozilla.com>2016-10-17 21:43:31 +0000
commitec6dada4bc0d26ca09ba26b169aff3be9575f99e (patch)
tree06503b09f1bd164f19df51b8dd88eda1f318a965
parentBug 1306534 - Crash when pasting UTF8 text as an attachment (diff)
downloadgentoo-bugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.zip
gentoo-bugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.tar.gz
gentoo-bugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.tar.bz2
Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the user hasn't global editcomponents privs
r/a=dkl
-rwxr-xr-xeditflagtypes.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index d0b9443..71f7cb6 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;
}
}