web/views/basecontrollers.py
changeset 10743 1e1c560cc610
parent 10740 59e89db3a67d
child 10907 9ae707db5265
--- a/web/views/basecontrollers.py	Wed Sep 30 18:28:31 2015 +0200
+++ b/web/views/basecontrollers.py	Wed Sep 30 18:28:57 2015 +0200
@@ -257,9 +257,8 @@
         # XXX unclear why we have a separated controller here vs
         # js_validate_form on the json controller
         status, args, entity = _validate_form(self._cw, self._cw.vreg)
-        domid = self._cw.form.get('__domid', 'entityForm').encode(
-            self._cw.encoding)
-        return self.response(domid, status, args, entity)
+        domid = self._cw.form.get('__domid', 'entityForm')
+        return self.response(domid, status, args, entity).encode(self._cw.encoding)
 
 
 class JSonController(Controller):