Commit 595677df authored by Tomáš Peterka's avatar Tomáš Peterka

[erp5_core] Mass Workflow Transition searches via Listbox and not catalog

parent b265c1e4
"""Return a list of Documents specified by `uid` which provide `workflow_id` transition.""" """Return a list of Documents specified by `uid` which provide `workflow_id` transition."""
portal_catalog = context.getPortalObject().portal_catalog
action_tool = context.getPortalObject().portal_actions action_tool = context.getPortalObject().portal_actions
result_list = portal_catalog.searchResults(sort_on=sort_on, limit=limit, **kwargs) result_list = context.Base_searchUsingListbox(
context.Base_getListbox(context.getPortalObject().REQUEST.get("form_id")), sort_on=sort_on, limit=limit, **kwargs)
if not workflow_action: if not workflow_action:
# if we have no filter (=workflow action) we return back all documents # if we have no filter (=workflow action) we return back all documents
......
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