hooks/syncschema.py
changeset 5774 0d792bceb25d
parent 5558 afd1face1faf
parent 5772 4283ee58acaf
child 5811 e77cea9721e7
--- a/hooks/syncschema.py	Thu Jun 17 14:43:16 2010 +0200
+++ b/hooks/syncschema.py	Thu Jun 17 15:15:52 2010 +0200
@@ -1182,7 +1182,7 @@
                 source.fti_unindex_entity(session, entity.eid)
                 for container in entity.cw_adapt_to('IFTIndexable').fti_containers():
                     if still_fti or container is not entity:
-                        source.fti_unindex_entity(session, entity.eid)
+                        source.fti_unindex_entity(session, container.eid)
                         source.fti_index_entity(session, container)
         if len(to_reindex):
             # Transaction have already been committed