4473: Prefix lost when using Add new child to family

svn: r16473
This commit is contained in:
Benny Malengier 2011-01-25 20:02:28 +00:00
parent 4f1943b180
commit c58ca7575b

View File

@ -1482,6 +1482,8 @@ class RelationshipView(NavigationView):
if father:
name = father.get_primary_name().get_surname()
person.get_primary_name().set_surname(name)
person.get_primary_name().set_surname_prefix(
father.get_primary_name().get_surname_prefix())
try:
EditPerson(self.dbstate, self.uistate, [], person,
callback=callback)