Commit 17ccd53d authored by Sebastien Robin's avatar Sebastien Robin

we should look for related proxy even if a form id does not

contain "_view"

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34522 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e8e245a
...@@ -955,7 +955,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -955,7 +955,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
'related_proxy_list': []} 'related_proxy_list': []}
def iterate(document): def iterate(document):
for i in document.objectValues(): for i in document.objectValues():
if i.meta_type == 'ERP5 Form' and '_view' in i.getId(): if i.meta_type == 'ERP5 Form':
for field in i.objectValues(): for field in i.objectValues():
if field.meta_type == 'ProxyField': if field.meta_type == 'ProxyField':
key = "%s.%s" % (field.get_value('form_id'), key = "%s.%s" % (field.get_value('form_id'),
......
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