# HG changeset patch # User Sylvain Thénault # Date 1269940670 -7200 # Node ID a4b735e76c660b95eb1022be84ae7d3c1660c0cf # Parent bc481dab93d43f34dba411a24e25b859e2c31098 [undo] init entity cache when undoing an entity deletion diff -r bc481dab93d4 -r a4b735e76c66 server/sources/native.py --- a/server/sources/native.py Tue Mar 30 11:17:21 2010 +0200 +++ b/server/sources/native.py Tue Mar 30 11:17:50 2010 +0200 @@ -920,6 +920,7 @@ else: entity[rtype] = value entity.set_eid(eid) + session.repo.init_entity_caches(session, entity, self) entity.edited_attributes = set(entity) entity.check() self.repo.hm.call_hooks('before_add_entity', session, entity=entity)