Commit 26f657c5 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: skip not needed query

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