Commit b55a6a28 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: skip not needed query

parent cc6c7f3d
...@@ -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