fix check for workitem type

This commit is contained in:
Helmut Merz 2017-01-16 15:23:48 +01:00
parent bd3d7a0e2f
commit 93249faf94

View file

@ -305,7 +305,7 @@ class WorkItem(Stateful, Track):
running = IWorkItems(getParent(self)).query( running = IWorkItems(getParent(self)).query(
party=userName, state='running') party=userName, state='running')
for wi in running: for wi in running:
if wi.workItemType in 'work': if wi.workItemType in (None, 'work'):
wi.doAction('work', userName, wi.doAction('work', userName,
end=(kw.get('start') or getTimeStamp())) end=(kw.get('start') or getTimeStamp()))
# standard creation of new work item: # standard creation of new work item: