Commit 5c5adaa0 authored by Aurel's avatar Aurel

Trash Folders are not indexable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96e23f57
...@@ -64,7 +64,7 @@ class TrashTool(BaseTool): ...@@ -64,7 +64,7 @@ class TrashTool(BaseTool):
if 'portal' in path: if 'portal' in path:
path += '_items' path += '_items'
if path not in backup_object_container.objectIds(): if path not in backup_object_container.objectIds():
backup_object_container = backup_object_container.newContent(portal_type='Trash Folder', id=path) backup_object_container = backup_object_container.newContent(portal_type='Trash Folder', id=path, isIndexable=0)
backup_object_container.edit(isHidden=1) backup_object_container.edit(isHidden=1)
else: else:
backup_object_container = backup_object_container._getOb(path) backup_object_container = backup_object_container._getOb(path)
......
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