Commit 741ab04f authored by Jérome Perrin's avatar Jérome Perrin

Our patched get_request were not returning the real REQUEST if it was set,

that's why we observed strange behaviours in field validation and in proxyfield
caches.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6afbc8e
...@@ -35,6 +35,9 @@ original_get_request = Globals.get_request ...@@ -35,6 +35,9 @@ original_get_request = Globals.get_request
convertToUpperCase = Products.ERP5Type.Utils.convertToUpperCase convertToUpperCase = Products.ERP5Type.Utils.convertToUpperCase
def get_request(): def get_request():
request = original_get_request()
if request is not None:
return request
if current_app is not None: if current_app is not None:
return current_app.REQUEST return current_app.REQUEST
else: else:
......
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