Commit 87b7bf1c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Yusei Tahara

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

we can and should use 'update_catalog' argument instead to clear catalog.
parent 2ceffaa9
......@@ -5269,13 +5269,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