Fix adding spouse after family exists

svn: r6301
This commit is contained in:
Don Allingham
2006-04-10 16:11:03 +00:00
parent 82e7835f87
commit e37110ba5b
2 changed files with 5 additions and 1 deletions

View File

@@ -761,7 +761,7 @@ class EditFamily(EditPrimary):
person.family_list.remove(self.obj.handle)
self.db.commit_person(person,trans)
if new_handle:
person = self.db.get_person_from_handle(orig_handle)
person = self.db.get_person_from_handle(new_handle)
if self.obj.handle not in person.family_list:
person.family_list.append(self.obj.handle)
self.db.commit_person(person,trans)