Commit d081be2f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

avoid possible KeyError in _removeAllButLastWorkflowHistory().

parent ba9c184b
......@@ -3947,9 +3947,9 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem):
wf_history = obj.workflow_history[wf_id][-1]
# Remove useless modifcation 'time' and 'actor' (conflicts with VCSs)
del wf_history['time']
del wf_history['actor']
del wf_history['comment']
wf_history.pop('time', None)
wf_history.pop('actor', None)
wf_history.pop('comment', None)
obj.workflow_history[wf_id] = WorkflowHistoryList([wf_history])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment