--- a/src/pyams_content/shared/common/__init__.py Thu Jan 10 17:37:38 2019 +0100
+++ b/src/pyams_content/shared/common/__init__.py Thu Jan 10 17:40:28 2019 +0100
@@ -294,9 +294,9 @@
return get_parent(self, IBaseSharedTool).shared_content_workflow
@volatile_property
- def published_version(self):
+ def visible_version(self):
workflow = IWorkflow(self)
- versions = IWorkflowVersions(self).get_versions(workflow.published_states, sort=True)
+ versions = IWorkflowVersions(self).get_versions(workflow.visible_states, sort=True)
if versions:
return versions[-1]
@@ -326,4 +326,4 @@
"""Reste target on workflow transition"""
content = get_parent(event.object, ISharedContent)
if content is not None:
- del content.published_version
+ del content.visible_version