Commit ea5ae420 authored by Jérome Perrin's avatar Jérome Perrin

Make sure action have getPriority attribute before calling it (eg. global actions do not have)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5121 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0914b6a0
......@@ -36,6 +36,7 @@ def ActionProviderBase_manage_editActionsForm( self, REQUEST, manage_tabs_messag
a1['visible'] = a.getVisibility()
a1['action'] = a.getActionExpression()
a1['condition'] = a.getCondition()
if hasattr(a, 'getPriority') :
a1['priority'] = a.getPriority()
if hasattr(a, 'getIconExpression') :
a1['icon'] = a.getIconExpression()
......
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