From c76159ab9d6a2815014341226ef0931c32e64f6e Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 15 Feb 2010 12:13:43 +0000 Subject: [PATCH] 3580: People list (private handlers) and display Name format in reality: associations are not removed on delete person svn: r14384 --- src/gen/db/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gen/db/base.py b/src/gen/db/base.py index 9fcf89c6a..2aa1a2c14 100644 --- a/src/gen/db/base.py +++ b/src/gen/db/base.py @@ -1504,11 +1504,11 @@ class DbWriteBase(object): person_list = [ item[1] for item in self.find_backlink_handles(handle,['Person'])] - + for phandle in person_list: p = self.get_person_from_handle(phandle) - p.remove_handle_references('Person', handle) - self.commit_person(person, trans) + p.remove_handle_references('Person', [handle]) + self.commit_person(p, trans) self.remove_person(handle, trans) def remove_family_relationships(self, family_handle, trans=None):