From 4d7d108ea9369abb098a73e5a9c2987534f72fb2 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 15 Feb 2010 12:16:08 +0000 Subject: [PATCH] 3580: People list (private handlers) and display Name format in reality: associations are not removed on delete person svn: r14385 --- src/gen/utils/dbutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen/utils/dbutils.py b/src/gen/utils/dbutils.py index 759a39357..9d888c1c0 100644 --- a/src/gen/utils/dbutils.py +++ b/src/gen/utils/dbutils.py @@ -66,8 +66,8 @@ def delete_person_from_database(db, person, trans): for phandle in person_list: p = db.get_person_from_handle(phandle) - p.remove_handle_references('Person', handle) - db.commit_person(person, trans) + p.remove_handle_references('Person', [handle]) + db.commit_person(p, trans) db.remove_person(handle, trans) def remove_family_relationships(db, family_handle, trans=None):