Commit 2eef43cf authored by Sebastien Robin's avatar Sebastien Robin

fixed regression introduced by 38891

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38897 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 511373a5
...@@ -541,6 +541,12 @@ class ERP5TypeInformation(XMLObject, ...@@ -541,6 +541,12 @@ class ERP5TypeInformation(XMLObject,
def _getActionList(self): def _getActionList(self):
action_list = self.getCacheableActionList() action_list = self.getCacheableActionList()
# This sort is a duplicate of calculation with what is done
# on portal_actions.listFilteredActionsFor . But getDefaultViewFor
# needs the sort here. This needs to be reviewed, because it is possible
# to define in portal_actions some actions that will have higher
# priorities than actions defined on portal types
action_list.sort(key=lambda x:x['priority'])
return action_list return action_list
_getActionList = CachingMethod(_getActionList, _getActionList = CachingMethod(_getActionList,
id='getActionList', id='getActionList',
......
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