Commit be260cdb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make it possible to set 0 value in layout property.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26985 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a977b48
...@@ -129,7 +129,7 @@ class WebSection(Domain, PermanentURLMixIn): ...@@ -129,7 +129,7 @@ class WebSection(Domain, PermanentURLMixIn):
section = aq_inner(self) section = aq_inner(self)
while section.getPortalType() in ('Web Section', 'Web Site'): while section.getPortalType() in ('Web Section', 'Web Site'):
result = section.getProperty(key, MARKER) result = section.getProperty(key, MARKER)
if result is not MARKER and result: if result not in (MARKER, None):
return result return result
section = section.aq_parent section = section.aq_parent
return default return default
......
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