Commit 42ccd9c8 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: skip not needed query

parent 6a3202a3
......@@ -3,6 +3,11 @@
fix acquisition issues within the _aq_dynamic
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:
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