Skip to content

Commit

Permalink
Fix event for obj parent modify (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 authored Nov 27, 2023
1 parent 402ab03 commit 842308f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog

- Added utility views: @@check-notizie and @@download-check-notizie.
[daniele]
- Fix event for obj parent update.
[eikichi18]


6.1.1 (2023-11-21)
Expand Down
4 changes: 3 additions & 1 deletion src/design/plone/contenttypes/events/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

def onModify(context, event):
for description in event.descriptions:
if "IBasic.title" in getattr(description, "attributes", []):
if "IBasic.title" in getattr(
description, "attributes", []
) or "IDublinCore.title" in getattr(description, "attributes", []):
for child in context.listFolderContents():
child.reindexObject(idxs=["parent"])

0 comments on commit 842308f

Please sign in to comment.