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:
parent
7d38122be8
commit
682cbe6e21
@ -188,6 +188,8 @@ class MergeFamilyQuery:
|
|||||||
# replace the family in lds ordinances
|
# replace the family in lds ordinances
|
||||||
for (dummy, person_handle) in self.database.find_backlink_handles(
|
for (dummy, person_handle) in self.database.find_backlink_handles(
|
||||||
old_handle, ['Person']):
|
old_handle, ['Person']):
|
||||||
|
if person_handle in (self.titanic_fh, self.titanic_mh):
|
||||||
|
continue
|
||||||
person = self.database.get_person_from_handle(person_handle)
|
person = self.database.get_person_from_handle(person_handle)
|
||||||
person.replace_handle_reference('Family', old_handle,new_handle)
|
person.replace_handle_reference('Family', old_handle,new_handle)
|
||||||
self.database.commit_person(person, trans)
|
self.database.commit_person(person, trans)
|
||||||
|
Loading…
Reference in New Issue
Block a user