Commit 99edcf18 authored by Aurel's avatar Aurel

don't remove empty trash bins at end of install


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4651 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71a4dce0
......@@ -2841,10 +2841,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
item = getattr(self, item_name)
if item is not None:
item.install(local_configuration, force=force, object_to_update=object_to_update, trashbin=trashbin)
# if trahs bin is empty, remove it
if trashbin is not None:
if len(trashbin.objectIds()) == 0:
self.portal_trash.manage_delObjects(trashbin.getId())
# It is better to clear cache because the installation of a template
# adds many new things into the portal.
clearCache()
......
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