summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/controllers/main.py')
-rw-r--r--addons/web_editor/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index 66d700f55c5..f7f548a75c9 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -32,7 +32,7 @@ class Web_Editor(http.Controller):
res_id=res_id,
field=field,
datarecord=json.loads(kwargs['datarecord']),
- debug=kwargs.get('debug'))
+ debug=request.debug)
for k in kwargs:
if isinstance(kwargs[k], basestring) and kwargs[k].isdigit():