Commit bb688bbe authored by Yusei Tahara's avatar Yusei Tahara

Fixed to pass when wflow is None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15989 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df6a5404
......@@ -93,7 +93,7 @@ def getLastWorkflowDate(self, state_name='simulation_state', state=('released','
if not hasattr(self, 'workflow_history'):
return None
for name,wflow in self.workflow_history.items():
if len(wflow) == 0: continue # empty history
if wflow is None or len(wflow) == 0: continue # empty history
if wflow[0].get(state_name) is None: continue # not the right one
for i in range(len(wflow)):
ch = wflow[-1-i]
......
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