Commit 9e6ce5ab authored by Jean-Paul Smets's avatar Jean-Paul Smets

probably a mistake in EditableField

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16583 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5ecf179
......@@ -191,9 +191,9 @@ class EditableValue(StaticValue):
# This is useful to render ERP5 content as in a web site (ECommerce)
# editable_mode should be set for example by the page template
# which defines the current layout
if kw.has_key('REQUEST'):
if kw.get('REQUEST', None) is not None:
if not getattr(kw['REQUEST'], 'editable_mode', 1):
self.value = 0
return 0
return self.value
def getFieldValue(self, field, id, **kw):
......
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