Commit 53e7f174 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[erp5_core] Bug fixes on Mass Worlflow Transition utility scripts

parent fd91e074
......@@ -131,7 +131,7 @@
</tal:block>
<tr><td>waitForElementPresent</td>
<td>//select[@name="field_workflow_action"]</td><td></td></tr>
<td>//select[@name="field_workflow_action"]/option[@value="validate_action"]</td><td></td></tr>
<tr><td>select</td>
<td>//select[@name="field_workflow_action"]</td>
<td>value=validate_action</td></tr>
......
......@@ -6,4 +6,4 @@ This script is intended to be used only internally.
form = getattr(context, form_id)
listbox = form.Base_getListbox()
return context.Base_searchUsingListbox(listbox, query, sort_on, limit)
return context.Base_searchUsingListbox(listbox, query, sort_on=sort_on, limit=limit)
......@@ -3,7 +3,7 @@
portal_catalog = context.getPortalObject().portal_catalog
action_tool = context.getPortalObject().portal_actions
document_list = [result.getObject() for result in portal_catalog.searchResults(sort_on=limit, limit=limit, **kwargs)]
document_list = [result.getObject() for result in portal_catalog.searchResults(sort_on=sort_on, limit=limit, **kwargs)]
if not workflow_action:
# 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