[undo] fix deletion of cw_source relation
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 16 Jan 2015 10:57:02 +0100
changeset 10183 ff93dad2ae3a
parent 10182 116b24efad0e
child 10184 c6dfa0d6b7d1
[undo] fix deletion of cw_source relation Closes #4912882
server/sources/native.py
--- a/server/sources/native.py	Thu Jan 15 15:45:09 2015 +0100
+++ b/server/sources/native.py	Fri Jan 16 10:57:02 2015 +0100
@@ -1230,7 +1230,7 @@
         # unvisible as transaction action
         self.doexec(cnx, 'DELETE FROM is_relation WHERE eid_from=%s' % eid)
         self.doexec(cnx, 'DELETE FROM is_instance_of_relation WHERE eid_from=%s' % eid)
-        self.doexec(cnx, 'DELETE FROM cw_source_relation WHERE eid_from=%s' % self.eid)
+        self.doexec(cnx, 'DELETE FROM cw_source_relation WHERE eid_from=%s' % eid)
         # XXX check removal of inlined relation?
         # delete the entity
         attrs = {'cw_eid': eid}