Skip to content

Commit

Permalink
Merge pull request #110 from plone/missing_cache_fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer authored Feb 27, 2023
2 parents 0ce1f19 + 34efa0a commit 227bfdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/109.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Prevent AttributeError when migrating to FolderishDocument.
[pbauer]
3 changes: 2 additions & 1 deletion src/plone/volto/browser/migrate_to_volto.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ def make_document(obj, slate=True):

obj.portal_type = "Document"
# Invalidate cache to find the behaviors
del obj._v__providedBy__
if getattr(obj, "_v__providedBy__", None) is not None:
del obj._v__providedBy__

if not obj.blocks:
obj.blocks = blocks
Expand Down

0 comments on commit 227bfdd

Please sign in to comment.