Commit f5d883c0 authored by Jérome Perrin's avatar Jérome Perrin

Base.getModificationDate: prevent KeyError time when indexing

This happens a lot with components, that we export without the time in
workflow history.
parent 5bec2ec8
......@@ -3243,7 +3243,7 @@ class Base(
try:
return min(history[0]['time']
for history in history_list.itervalues()
if history)
if history and 'time' in history[0])
except ValueError:
pass
if getattr(aq_base(self), 'CreationDate', None) is not None:
......
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