Commit b6911b3c authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: only the first element is needed

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