--- a/src/pyams_content/workflow/__init__.py Mon Jan 18 17:44:04 2016 +0100
+++ b/src/pyams_content/workflow/__init__.py Mon Jan 18 17:44:37 2016 +0100
@@ -183,13 +183,14 @@
"""Publish version"""
request = check_request()
translate = request.localizer.translate
- IWorkflowPublicationInfo(context).publication_date = datetime.utcnow()
+ publication_info = IWorkflowPublicationInfo(context)
+ publication_info.publication_date = datetime.utcnow()
+ publication_info.publisher = request.principal.id
version_id = IWorkflowState(context).version_id
for version in IWorkflowVersions(context).get_versions((PUBLISHED, RETIRING, RETIRED, ARCHIVING)):
if version is not context:
IWorkflowInfo(version).fire_transition_toward('archived',
comment=translate(_("Published version {0}")).format(version_id))
- IWfSharedContent(context).publisher = request.principal.id
def archive_action(wf, context):