9612: Problem adding parents [with Latin names]
This commit is contained in:
parent
2bd1a4b757
commit
58b12e702a
@ -1210,16 +1210,17 @@ class EditFamily(EditPrimary):
|
|||||||
child = self.db.get_person_from_handle(ref.ref)
|
child = self.db.get_person_from_handle(ref.ref)
|
||||||
if child:
|
if child:
|
||||||
pname = child.get_primary_name()
|
pname = child.get_primary_name()
|
||||||
preset_name(child, name)
|
preset_name(child, name) # add the known family surnames, etc.
|
||||||
if len(name.get_surname_list()) < 2:
|
surnames = name.get_surname_list()
|
||||||
|
if len(surnames) < 2:
|
||||||
return name
|
return name
|
||||||
else:
|
else:
|
||||||
#return first for the father, and last for the mother
|
#return first for the father, and last for the mother
|
||||||
if parent == 'father':
|
if parent == 'father':
|
||||||
name.set_surname_list(name.get_surname_list()[0])
|
name.set_surname_list([surnames[0]])
|
||||||
return name
|
return name
|
||||||
else:
|
else:
|
||||||
name.set_surname_list(name.get_surname_list()[-1])
|
name.set_surname_list([surnames[-1]])
|
||||||
return name
|
return name
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user