Skip to content

Commit

Permalink
Merge pull request #112 from plone/110-do-not-lookup-faux-behaviors
Browse files Browse the repository at this point in the history
Avoid looking up behaviors with an empty name
  • Loading branch information
jensens committed Sep 3, 2019
2 parents 04f9f70 + e63e55a commit 76bdf0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/110.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid looking up behaviors with an empty name [ale-rt]
2 changes: 1 addition & 1 deletion plone/dexterity/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76bdf0b

Please sign in to comment.