Commit 6bf91353 authored by Łukasz Nowak's avatar Łukasz Nowak

- return sorted list of proxied fields


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30554 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69f256ea
...@@ -894,7 +894,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -894,7 +894,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
""" """
Return ProxyFields Return ProxyFields
""" """
return [f for f in self.objectValues() if f.meta_type == 'ProxyField'] return sorted([f for f in self.objectValues() \
if f.meta_type == 'ProxyField'], key = lambda x: x.id)
security.declareProtected('Change Formulator Forms', 'proxifyField') security.declareProtected('Change Formulator Forms', 'proxifyField')
def proxifyField(self, field_dict=None, force_delegate=False, def proxifyField(self, field_dict=None, force_delegate=False,
......
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