diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.py b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.py index ca562e5951838b6ee039abd4bf431c5699da1e51..28c528df29dddc0f6cd0597f8fcf67eee4611c1d 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.py +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.py @@ -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()