Commit 544cb918 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Site: return getPortal*StateList sorted

This things (in practice, tests) deterministic
parent 29ac34b6
...@@ -988,7 +988,7 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, PortalObjectBase, CacheCook ...@@ -988,7 +988,7 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, PortalObjectBase, CacheCook
for state in wf.getStateValueList(): for state in wf.getStateValueList():
if group in state.getStateTypeList(): if group in state.getStateTypeList():
state_set.add(state.getReference()) state_set.add(state.getReference())
return tuple(state_set) return tuple(sorted(state_set))
getStateList = CachingMethod(getStateList, getStateList = CachingMethod(getStateList,
id=('_getPortalGroupedStateList', group), id=('_getPortalGroupedStateList', group),
......
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