Commit 10a3ca55 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: only the first element is needed

parent 33e96821
......@@ -5,6 +5,9 @@
"""
if portal is None:
portal = context.getPortalObject()
kw['limit'] = 1
document_list = portal.portal_catalog.getDocumentValueList(
reference=name,
language=language,
......
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