Fix family merge bug

References do not need to be updated in people that have been
removed in the merge.
This commit is contained in:
Nick Hall 2017-02-27 22:00:08 +00:00
parent 7d38122be8
commit 682cbe6e21

View File

@ -188,6 +188,8 @@ class MergeFamilyQuery:
# replace the family in lds ordinances
for (dummy, person_handle) in self.database.find_backlink_handles(
old_handle, ['Person']):
if person_handle in (self.titanic_fh, self.titanic_mh):
continue
person = self.database.get_person_from_handle(person_handle)
person.replace_handle_reference('Family', old_handle,new_handle)
self.database.commit_person(person, trans)