Skip to content

Commit

Permalink
added uidtool
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat2Jain committed Sep 20, 2023
1 parent 3b3c7d5 commit 414ac04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/CMFUid/UniqueIdAnnotationTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def handleUidAnnotationEvent(ob, event):
if event.newParent is not None:
anno_tool = queryUtility(IUniqueIdAnnotationManagement)
uidtool = getToolByName(ob, 'portal_uidhandler', None)
if anno_tool is not None:
if anno_tool is not None and uidtool is not None:
remove_on_add = anno_tool.getProperty('remove_on_add', False)
remove_on_clone = anno_tool.getProperty('remove_on_clone',
False)
Expand Down

0 comments on commit 414ac04

Please sign in to comment.