--- a/src/pyams_content/shared/common/zmi/workflow.py Fri Nov 10 12:07:43 2017 +0100
+++ b/src/pyams_content/shared/common/zmi/workflow.py Tue Nov 14 14:05:30 2017 +0100
@@ -18,7 +18,7 @@
# import interfaces
from pyams_content.interfaces import PUBLISH_CONTENT_PERMISSION, CREATE_CONTENT_PERMISSION, MANAGE_CONTENT_PERMISSION
-from pyams_content.shared.common.interfaces import IWfSharedContent, ISharedTool, ISharedContent
+from pyams_content.shared.common.interfaces import IWfSharedContent, IBaseSharedTool, ISharedContent
from pyams_form.interfaces.form import IWidgetsPrefixViewletsManager, IFormSuffixViewletsManager
from pyams_security.interfaces import ISecurityManager
from pyams_skin.layer import IPyAMSLayer
@@ -762,7 +762,7 @@
state = IWorkflowState(self.context)
if state.version_id == 1: # remove the first and only version => remove all
content = get_parent(self.context, ISharedContent)
- self.__target = get_parent(content, ISharedTool)
+ self.__target = get_parent(content, IBaseSharedTool)
del content.__parent__[content.__name__]
else:
versions = IWorkflowVersions(self.context)