Commit 3d17186c authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: skip not needed query

parent 97077cbe
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
fix acquisition issues within the _aq_dynamic fix acquisition issues within the _aq_dynamic
lookup from WebSection class. lookup from WebSection class.
""" """
if not name:
# Catalog does not search empty reference.
# Skip the query in such case.
return None
if portal is None: if portal is None:
portal = context.getPortalObject() portal = context.getPortalObject()
......
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