Commit da76c997 authored by Vincent Pelletier's avatar Vincent Pelletier

EPR5Type: Handle activate_kw consistently everywhere.

activate_kw was not honored in immediate indexation code path.
parent 4496b898
...@@ -457,6 +457,8 @@ class ERP5TypeInformation(XMLObject, ...@@ -457,6 +457,8 @@ class ERP5TypeInformation(XMLObject,
method = ob._reindexOnCreation method = ob._reindexOnCreation
if reindex_kw is not None: if reindex_kw is not None:
method = partial(method, **reindex_kw) method = partial(method, **reindex_kw)
elif activate_kw is not None:
method = partial(method, **activate_kw)
if isinstance(immediate_reindex, ImmediateReindexContextManager): if isinstance(immediate_reindex, ImmediateReindexContextManager):
immediate_reindex.append(method) immediate_reindex.append(method)
elif immediate_reindex: elif immediate_reindex:
......
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