diff -r 7070250bf50d -r 0a927fe4541b web/views/editcontroller.py --- 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