Commit 106ee51f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_core] fixup

Many typos in: nexedi/erp5@a9d81b09
parent 94e464ac
......@@ -4,7 +4,7 @@ parameter_list = field.getTemplateField().get_value('default_params')
# If the listbox does not display them, do not add the state filter parameter
filter_portal_type_list = [x[1] for x in parameter_list if x[0] == 'portal_type']
if filter_portal_type_list:
if sametype(filter_portal_type_list, ''):
if same_type(filter_portal_type_list, ''):
filter_portal_type_list = [filter_portal_type_list]
else:
filter_portal_type_list = None
......
......@@ -19,7 +19,7 @@ module_portal_type = type_tool.getTypeInfo(module)
checked_workflow_id_dict = {}
for document_portal_type_id in module_portal_type.getTypeAllowedContentTypeList():
if (filter_portal_type_list is not None) and (filter_portal_type_list not in portal_type_list):
if (filter_portal_type_list is not None) and (document_portal_type_id not in filter_portal_type_list):
continue
for workflow in workflow_tool.getWorkflowsFor(document_portal_type_id):
if workflow.id not in checked_workflow_id_dict:
......
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