Commit 99164190 authored by Kevin Deldycke's avatar Kevin Deldycke

Fix wrong accessor test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9299 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 109d164a
......@@ -2214,7 +2214,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
return current.getContainerLayout()
# First try to get a content layout
while current is not None:
if hasattr(current, 'hasContentLayout') and current.getContentLayout() not in ('', None):
if hasattr(current, 'getContentLayout') and current.getContentLayout() not in ('', None):
return current.getContentLayout()
current = current.getParentValue()
if not hasattr(current, 'getApplicableLayout'):
......
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