2007-10-22 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py: xml load/save not working, fixed #1319 svn: r9233
This commit is contained in:
parent
4ad174fc44
commit
f8d26dede0
@ -1,3 +1,6 @@
|
||||
2007-10-22 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsInMemDB.py: xml load/save not working, fixed #1319
|
||||
|
||||
2007-10-22 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||
* src/ReportBase/_MenuOptions.py: Refactored options, GEPS #005
|
||||
|
||||
|
@ -254,7 +254,11 @@ class GrampsInMemDB(GrampsDbBase):
|
||||
old_id = old_data[self.ID_INDEX]
|
||||
if old_id is not None and obj.gramps_id != old_id:
|
||||
del trans_map[old_id]
|
||||
trans_map[gid] = obj.handle
|
||||
#on load of xml for backref that are encountered before object exists,
|
||||
#the object is created empty with gid None. Do not add this to
|
||||
#trans_map. Broken ref will then also not be exported (good!)
|
||||
if gid is not None:
|
||||
trans_map[gid] = obj.handle
|
||||
return True
|
||||
|
||||
def commit_person(self,person,transaction,change_time=None):
|
||||
|
Loading…
Reference in New Issue
Block a user