cubicweb/web/views/editcontroller.py
changeset 11464 96d1aed1e2b5
parent 11129 97095348b3ee
child 11741 8f264d98d6fd
--- 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)