[text search] fix fulltext_container indexation stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Thu, 17 Jun 2010 15:08:25 +0200
branchstable
changeset 5772 4283ee58acaf
parent 5771 c077df1d0333
child 5773 aae03cd19151
[text search] fix fulltext_container indexation
hooks/syncschema.py
web/data/cubicweb.ajax.js
--- a/hooks/syncschema.py	Thu Jun 17 15:04:35 2010 +0200
+++ b/hooks/syncschema.py	Thu Jun 17 15:08:25 2010 +0200
@@ -1177,7 +1177,7 @@
                 source.fti_unindex_entity(session, entity.eid)
                 for container in entity.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
--- a/web/data/cubicweb.ajax.js	Thu Jun 17 15:04:35 2010 +0200
+++ b/web/data/cubicweb.ajax.js	Thu Jun 17 15:08:25 2010 +0200
@@ -200,6 +200,7 @@
     if (req.status == 500) {
         updateMessage(err);
     } else {
+        log(err);
         updateMessage(_("an error occured while processing your request"));
     }
 }