Commit 6d7c4408 authored by Rafael Monnerat's avatar Rafael Monnerat

slap/hateoas: Only set limit if it is not part of the query already

parent d6841bb9
......@@ -281,6 +281,7 @@ class HateoasNavigator(object):
# at least 18 sub instances this limit is too low thus we need to explicitly
# increase it. 40 is the de-facto default ERP5 preference for number of objects
# which are usually to be rendered in alistbox 'view' mode
if 'limit' not in query:
query['limit'] = 40
search_url = self._getSearchUrl()
getter_link = expand(search_url, query)
......
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