server/hookhelper.py
changeset 2609 a0f6fa90cc32
parent 2221 d9b85a7b0bdd
child 2647 b0a2e779845c
--- a/server/hookhelper.py	Fri Jul 31 23:54:20 2009 +0200
+++ b/server/hookhelper.py	Fri Jul 31 23:55:50 2009 +0200
@@ -76,6 +76,8 @@
     relation hooks, the relation may has been deleted at this point, so
     we have handle that
     """
+    if eid in session.transaction_data.get('neweids', ()):
+        return
     pending = session.transaction_data.get('pendingrelations', ())
     for eidfrom, rtype, eidto in reversed(pending):
         if rtype == 'in_state' and eidfrom == eid: