diff -r b0b03ac1d03a -r d3f8866a48f5 server/repository.py --- a/server/repository.py Thu Jun 05 16:15:29 2014 +0200 +++ b/server/repository.py Tue Jun 10 09:35:26 2014 +0200 @@ -1455,11 +1455,7 @@ if relcache is not None: session.update_rel_cache_del(entity.eid, attr, prevvalue) del_existing_rel_if_needed(session, entity.eid, attr, value) - if relcache is not None: - session.update_rel_cache_add(entity.eid, attr, value) - else: - entity.cw_set_relation_cache(attr, 'subject', - session.eid_rset(value)) + session.update_rel_cache_add(entity.eid, attr, value) hm.call_hooks('after_add_relation', session, eidfrom=entity.eid, rtype=attr, eidto=value) finally: