no message

svn: r420
This commit is contained in:
Don Allingham 2001-09-21 22:56:34 +00:00
parent 35ff79bafa
commit 3bbcaa3418
2 changed files with 7 additions and 1 deletions

View File

@ -1120,6 +1120,9 @@ def save_person(obj):
if idval != person.getId(): if idval != person.getId():
m = epo.db.getPersonMap() m = epo.db.getPersonMap()
if not m.has_key(idval): if not m.has_key(idval):
if m.has_key(person.getId()):
del m[person.getId()]
m[idval] = person
person.setId(idval) person.setId(idval)
else: else:
n = Config.nameof(m[idval]) n = Config.nameof(m[idval])

View File

@ -2064,7 +2064,10 @@ def on_spouselist_changed(obj):
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
def new_after_edit(epo): def new_after_edit(epo):
if epo.person.getId() == "":
database.addPerson(epo.person) database.addPerson(epo.person)
else:
database.addPersonNoMap(epo.person,epo.person.getId())
change_active_person(epo.person) change_active_person(epo.person)
redisplay_person_list(epo.person) redisplay_person_list(epo.person)