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 /editflagtypes.cgi
parentBug 1306534 - Crash when pasting UTF8 text as an attachment (diff)
downloadbugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.tar.gz
bugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.tar.bz2
bugzilla-ec6dada4bc0d26ca09ba26b169aff3be9575f99e.zip
Bug 1310728 - editflagtypes.cgi crashes when classifications are enabled and the user hasn't global editcomponents privs
r/a=dkl
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index d0b9443b5..71f7cb655 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;
}
}