Commit 1f9ec618 authored by Fabien Morin's avatar Fabien Morin

cover the case where reference = ''

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fdf2adb6
......@@ -118,7 +118,7 @@ class WebSection(Domain, PermanentURLMixIn):
document = PermanentURLMixIn.__bobo_traverse__(self, request, name)
except NotFound:
not_found_page_ref = self.getLayoutProperty('layout_not_found_page_reference')
if not_found_page_ref is not None:
if not_found_page_ref:
document = PermanentURLMixIn.getDocumentValue(self, name=not_found_page_ref)
if document is None:
# if no document found, fallback on default page template
......
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