Commit 9b5c74fb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

'force' argument in BusinessTemplate._install() should not mean clear catalog.

we can and should use 'update_catalog' argument instead to clear catalog.
parent 90688bdc
......@@ -5161,13 +5161,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
item.install(self, force=force, object_to_update=object_to_update,
trashbin=trashbin, installed_bt=installed_bt)
# update catalog if necessary
if update_catalog is _MARKER and force and self.isCatalogUpdatable():
# override update_catalog parameter only if value
# is not explicitely passed.
update_catalog = 1
elif update_catalog is _MARKER:
update_catalog = 0
if update_catalog:
catalog = _getCatalogValue(self)
if (catalog is None) or (not site.isIndexable):
......
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