hooks/integrity.py
changeset 3590 1b0dbcf4b214
parent 3589 a5432f99f2d9
child 3630 275feb5370c9
--- a/hooks/integrity.py	Wed Oct 07 12:31:08 2009 +0200
+++ b/hooks/integrity.py	Wed Oct 07 12:38:30 2009 +0200
@@ -201,7 +201,8 @@
         # if the relation is being delete, don't delete composite's components
         # automatically
         pendingrdefs = self._cw.transaction_data.get('pendingrdefs', ())
-        if (self._cw.describe(eidfrom)[0], rtype, self._cw.describe(eidto)[0]) in pendingrdefs:
+        if (self._cw.describe(self.eidfrom)[0], self.rtype,
+            self._cw.describe(self.eidto)[0]) in pendingrdefs:
             return
         composite = self._cw.schema_rproperty(self.rtype, self.eidfrom, self.eidto,
                                                  'composite')