Commit 2508758f authored by iv's avatar iv

ERP5Workflow: get...TypeList should not return multiple times the same value

parent 68df1e4c
......@@ -776,7 +776,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
for state in wf.getStateValueList():
if group in state.getStateTypeList():
state_list.append(state.getReference())
return tuple(state_list)
return tuple(set(state_list))
getStateList = CachingMethod(getStateList,
id=('_getPortalGroupedStateList', group),
......@@ -1302,7 +1302,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
for state in wf.getStateValueList():
if state.getStateTypeList():
state_list.append(state.getReference())
return tuple(sorted_list)
return tuple(set(sorted_list))
getStateList = CachingMethod(getStateList,
id=('getPortalGroupedSimulationStateList'),
......
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