Commit dba8a3b5 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't break display for objects that don't have hasLayout().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5668 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b78f4b96
......@@ -2226,7 +2226,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
"""
current = self
while current is not None:
if current.hasLayout():
if hasattr(current, 'hasLayout') and current.hasLayout():
return current.getLayout()
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