Commit 34ab28b7 authored by Jérome Perrin's avatar Jérome Perrin

Don't compare the portal types items, but simply the first element. This is to...

Don't compare the portal types items, but simply the first element. This is to be compatible with some fields that uses for instance python:zip(context.getPortalXTypeList()) as TALES

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e66f8c56
......@@ -77,9 +77,10 @@ if parameter is not None:\n
relation_field_proxy_listbox, None)\n
if proxied_listbox is None:\n
return portal_type\n
\n
\n
proxied_listbox_portal_type = proxied_listbox.get_value(\'portal_types\')\n
return [x for x in proxied_listbox_portal_type if x in portal_type] or portal_type\n
portal_type_first_item_list = [x[0] for x in portal_type]\n
return [x for x in proxied_listbox_portal_type if x[0] in portal_type_first_item_list] or portal_type\n
\n
return result\n
</string> </value>
......@@ -135,6 +136,8 @@ return result\n
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>_getitem_</string>
<string>portal_type_first_item_list</string>
</tuple>
</value>
</item>
......
1351
\ No newline at end of file
1352
\ No newline at end of file
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