Commit 9ef3f18b01aa5dd7dd49f20b80b3f6edb44fe73d

  • avatar
  • Mika Lehtinen <mikkalle @j…u.fi> (Committer)
  • Tue Oct 31 17:14:25 EET 2017
  • avatar
  • Mika Lehtinen <mikkalle @j…u.fi> (Author)
  • Tue Oct 31 17:14:25 EET 2017
Fix exception when before_id key is missing for insert operation in changelog
timApp/documentmodel/changelogentry.py
(1 / 1)
  
2626 elif op == OperationType.Delete:
2727 return DeleteOperation(op)
2828 elif op == OperationType.Insert:
29 return InsertOperation(op, d['before_id'])
29 return InsertOperation(op, d.get('before_id'))
3030 elif op == OperationType.Modify:
3131 return ModifyOperation(op, old_hash=d['old_hash'], new_hash=d['new_hash'])
3232 else: