we must check constraint for all concerned entities and not stop at the first deleted one stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 26 Jan 2011 10:49:05 +0100
branchstable
changeset 6894 ba3f7e655414
parent 6893 2e10337c9c2c
child 6895 32eb31855196
we must check constraint for all concerned entities and not stop at the first deleted one
hooks/integrity.py
--- a/hooks/integrity.py	Wed Jan 26 10:42:40 2011 +0100
+++ b/hooks/integrity.py	Wed Jan 26 10:49:05 2011 +0100
@@ -176,9 +176,9 @@
             # first check related entities have not been deleted in the same
             # transaction
             if session.deleted_in_transaction(eidfrom):
-                return
+                continue
             if session.deleted_in_transaction(eidto):
-                return
+                continue
             for constraint in constraints:
                 # XXX
                 # * lock RQLConstraint as well?