Commit b705495d authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[erp5_core] Bug hunt: logs and stale parameter

parent 9c87cb58
......@@ -19,7 +19,7 @@ Format of Action returned by getFilteredActions['workflow'] = [{
"""
action_tool = context.getPortalObject().portal_actions
id_form_dict = dict()
context.log("called with form_id {}, query {}, workflow_action {}".format(form_id, query, workflow_action))
for result in context.Base_searchUsingFormIdAndQuery(form_id, query):
for action in action_tool.listFilteredActionsFor(result.getObject()).get('workflow', []):
id_form_dict[action['id']] = action['url'].rsplit('/', 1)[1].split('?')[0]
......
......@@ -276,7 +276,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.Base_getListbox(form_id=request.get(\'form_id\')).getId()</string> </value>
<value> <string>python: here.Base_getListbox(request.get(\'form_id\')).getId()</string> </value>
</item>
</dictionary>
</pickle>
......
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