Skip to content

Commit

Permalink
Fixing undo/redo
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Oct 29, 2024
1 parent 73d2054 commit d3dfd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gramps/plugins/db/dbapi/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ def _commit_base(self, obj, obj_key, trans, change_time):
self._update_backlinks(obj, trans)
if not trans.batch:
if old_data:
trans.add(obj_key, TXNUPD, obj.handle, old_data, obj.serialize())
trans.add(obj_key, TXNUPD, obj.handle, old_data, to_struct(obj))
else:
trans.add(obj_key, TXNADD, obj.handle, None, obj.serialize())
trans.add(obj_key, TXNADD, obj.handle, None, to_struct(obj))

return old_data

Expand Down

0 comments on commit d3dfd4f

Please sign in to comment.