Commit 3e781963 authored by Tomáš Peterka's avatar Tomáš Peterka

[erp5_core] More hardcoded limits for mass action

parent 67dfdd03
...@@ -21,10 +21,11 @@ action_tool = context.getPortalObject().portal_actions ...@@ -21,10 +21,11 @@ action_tool = context.getPortalObject().portal_actions
id_form_dict = dict() id_form_dict = dict()
result_list = () result_list = ()
if uids is not None: if uids is not None:
result_list = context.getPortalObject().portal_catalog(uid=uids) result_list = context.getPortalObject().portal_catalog(uid=uids, limit=50)
else: else:
result_list = context.Base_searchUsingFormIdAndQuery(form_id, query) result_list = context.Base_searchUsingFormIdAndQuery(form_id, query, limit=50)
for result in result_list: for result in result_list:
for action in action_tool.listFilteredActionsFor(result.getObject()).get('workflow', []): for action in action_tool.listFilteredActionsFor(result.getObject()).get('workflow', []):
......
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