Commit 7cccbe9d authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[hal_json] Remove `uid` parameter because it is not useful

parent dba67306
......@@ -3,10 +3,7 @@
portal_catalog = context.getPortalObject().portal_catalog
action_tool = context.getPortalObject().portal_actions
if not uid:
return []
document_list = [result.getObject() for result in portal_catalog.searchResults(uid=uid, sort_on=sort_on, limit=limit)]
document_list = [result.getObject() for result in portal_catalog.searchResults(sort_on=limit, limit=limit, **kwargs)]
if not workflow_action:
# if we have no filter (=workflow action) we return back all documents
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>uid, workflow_action=\'\', sort_on=(), limit=None, **kwargs</string> </value>
<value> <string>workflow_action=\'\', sort_on=(), limit=None, **kwargs</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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