# HG changeset patch # User Alexandre Fayolle # Date 1296035345 -3600 # Node ID ba3f7e6554140e51f2f1e4a421b6e96d69491edb # Parent 2e10337c9c2cb275ad68b28cf28aed62f0273007 we must check constraint for all concerned entities and not stop at the first deleted one diff -r 2e10337c9c2c -r ba3f7e655414 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?