web/views/editcontroller.py
changeset 8128 0a927fe4541b
parent 8041 81794aa0c8b4
child 8190 2a3c1b787688
--- a/web/views/editcontroller.py	Fri Dec 09 12:14:11 2011 +0100
+++ b/web/views/editcontroller.py	Fri Dec 16 12:30:12 2011 +0100
@@ -161,7 +161,7 @@
             neweid = entity.eid
         except ValidationError, ex:
             self._to_create[eid] = ex.entity
-            if self._cw.json_request: # XXX (syt) why?
+            if self._cw.ajax_request: # XXX (syt) why?
                 ex.entity = eid
             raise
         self._to_create[eid] = neweid