Commit 7b0c042a authored by Jérome Perrin's avatar Jérome Perrin

REQUEST is sometimes passed, but with None value. Call get_request only if

REQUEST is not None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 058f9b3c
......@@ -324,8 +324,9 @@ def getFieldValue(self, field, id, **kw):
return_value = StaticValue(value)(field, id, **kw)
return return_value, isCacheable(return_value)
def get_value(self, id, **kw):
REQUEST = kw.get('REQUEST', get_request())
def get_value(self, id, REQUEST=None, **kw):
if REQUEST is None:
REQUEST = get_request()
if REQUEST is not None:
field = REQUEST.get(
'field__proxyfield_%s_%s_%s' % (self.id, self._p_oid, id),
......
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