Commit 56754c79 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Site: return getPortal*StateList sorted

This solves a failure with testBudget, it should only impact test, but
it's probably better to have a deterministic ordering here.
parent 8eb0ddde
......@@ -988,7 +988,7 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, PortalObjectBase, CacheCook
for state in wf.getStateValueList():
if group in state.getStateTypeList():
state_set.add(state.getReference())
return tuple(state_set)
return tuple(sorted(state_set))
getStateList = CachingMethod(getStateList,
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