Commit ab0fa130 authored by Jérome Perrin's avatar Jérome Perrin

ProxyField was not using the same request than listbox

This is a quick workaround, the main problem is that get_request is monkey
patched to use a completly different implementation in tests, and in some cases
this monkey patch is not properly applied.
parent fb5c4b9b
......@@ -715,7 +715,7 @@ class ProxyField(ZMIField):
field = self
proxy_field = self.getTemplateField()
REQUEST = get_request()
REQUEST = kw.get('REQUEST', get_request())
if proxy_field is not None and 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