diff --git a/news/110.bugfix b/news/110.bugfix new file mode 100644 index 00000000..93f64083 --- /dev/null +++ b/news/110.bugfix @@ -0,0 +1 @@ +Avoid looking up behaviors with an empty name [ale-rt] diff --git a/plone/dexterity/schema.py b/plone/dexterity/schema.py index 9d0afa86..444f1b7e 100644 --- a/plone/dexterity/schema.py +++ b/plone/dexterity/schema.py @@ -131,7 +131,7 @@ def behavior_registrations(self, fti): if fti is None: return tuple() registrations = [] - for behavior_name in fti.behaviors: + for behavior_name in filter(None, fti.behaviors): registration = queryUtility(IBehavior, name=behavior_name) if registration is None: # BBB - this case should be deprecated in v 3.0