* src/FamilyView.py: commit family before people when committing

new spouse.


svn: r4355
This commit is contained in:
Don Allingham
2005-04-13 02:46:19 +00:00
parent 2a3935a235
commit 2022576648
3 changed files with 6 additions and 3 deletions

View File

@@ -716,10 +716,11 @@ class FamilyView:
family.set_father_handle(epo.person.get_handle())
family.set_mother_handle(self.person.get_handle())
self.parent.db.commit_family(family,trans)
self.parent.db.commit_person(new_person,trans)
self.parent.db.commit_person(old_person,trans)
self.parent.db.commit_family(family,trans)
self.parent.db.transaction_commit(trans,_("Add Spouse"))
self.family = family
self.person = old_person
m = Marriage.Marriage(self.parent,self.family,self.parent.db)