Commit 7fa2fe42 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

objectValues() also supports portal_type and meta_type arguments.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20346 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df1963f2
......@@ -941,10 +941,6 @@ class ListBoxRenderer:
list_method_name = self.getListMethodName()
meta_type_list = self.getMetaTypeList()
portal_type_list = self.getPortalTypeList()
if list_method_name == 'objectValues':
if meta_type_list is not None:
params.setdefault('spec', meta_type_list)
else:
if portal_type_list is not None:
params.setdefault('portal_type', portal_type_list)
elif meta_type_list is not None:
......
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