From 414ac0413cc5ebeac3b6547db4c9b3828aa06dd2 Mon Sep 17 00:00:00 2001 From: akshat2jain Date: Wed, 20 Sep 2023 10:57:10 +0530 Subject: [PATCH] added uidtool --- src/Products/CMFUid/UniqueIdAnnotationTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Products/CMFUid/UniqueIdAnnotationTool.py b/src/Products/CMFUid/UniqueIdAnnotationTool.py index 0c23b1b..a29d4e9 100644 --- a/src/Products/CMFUid/UniqueIdAnnotationTool.py +++ b/src/Products/CMFUid/UniqueIdAnnotationTool.py @@ -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)