summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-24 12:58:50 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-24 12:58:50 (GMT)
commitaf32e5d4b4b7368c6ca0d7efc26b63c4d054c94b (patch)
tree9d7ced3ee56d49001204a03d68a5aae58706bba1
parent7f7c2558b08f4c6ea27981952d159d270766aeed (diff)
downloadplone.formwidget.contenttree-af32e5d4b4b7368c6ca0d7efc26b63c4d054c94b.zip
plone.formwidget.contenttree-af32e5d4b4b7368c6ca0d7efc26b63c4d054c94b.tar.gz
plone.formwidget.contenttree-af32e5d4b4b7368c6ca0d7efc26b63c4d054c94b.tar.bz2
do not consider empty brains (#4550)HEADmaster
-rw-r--r--plone/formwidget/contenttree/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plone/formwidget/contenttree/source.py b/plone/formwidget/contenttree/source.py
index 8a1cee5..2666a68 100644
--- a/plone/formwidget/contenttree/source.py
+++ b/plone/formwidget/contenttree/source.py
@@ -141,7 +141,7 @@ class PathSource(object):
try:
results = (self.getTermByBrain(brain, real_value=False)
- for brain in self.catalog(**catalog_query))
+ for brain in self.catalog(**catalog_query) if brain)
except ParseError:
return []