# HG changeset patch # User Sylvain Thénault # Date 1469107956 -7200 # Node ID 96d1aed1e2b5bbe2c2ad90d5b48a5f4017d71762 # Parent 31e2de4d23a619f77e73acabf41991a53b85c3bb Drop the only reference to an '__insert' form key diff -r 31e2de4d23a6 -r 96d1aed1e2b5 cubicweb/web/views/editcontroller.py --- a/cubicweb/web/views/editcontroller.py Fri Jul 08 10:13:15 2016 +0200 +++ b/cubicweb/web/views/editcontroller.py Thu Jul 21 15:32:36 2016 +0200 @@ -202,7 +202,7 @@ except (RequestError, NothingToEdit) as ex: if '__linkto' in req.form and 'eid' in req.form: self.execute_linkto() - elif not ('__delete' in req.form or '__insert' in req.form): + elif '__delete' not in req.form: raise ValidationError(None, {None: text_type(ex)}) # all pending inlined relations to newly created entities have been # treated now (pop to ensure there are no attempt to add new ones)