Commit 70326bbf authored by Arnaud Fontaine's avatar Arnaud Fontaine

BusinessTemplate: Add not committed function call (b241968f).

parent 29343915
......@@ -960,6 +960,8 @@ class ObjectTemplateItem(BaseTemplateItem):
def unindex(root_document_path, path, uid):
LOG('Products.ERP5.Document.BusinessTemplate', WARNING,
'Unindex Broken object at %r.' % (path,))
# Make sure there is not activity for this object
flushActivity(fakeobject(path))
# Set the path as deleted without lock
catalog.beforeUnindexObject(None,path=path,uid=uid)
# Then start activity in order to remove lines in catalog,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment