Commit 4496b898 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type: Do not prepare for immediate indexation when it's not requested.

Also, tix typo in comment.
parent 1cd37609
......@@ -443,8 +443,8 @@ class ERP5TypeInformation(XMLObject,
if kw:
ob._edit(force_update=1, **kw)
if not temp_object:
# As we juste created ob, we assume the whole subtree is of a
if not temp_object and immediate_reindex is not None:
# As we just created ob, we assume the whole subtree is of a
# reasonable size and hence can be walked in current transaction.
# Subtree may come from:
# - acquired setter (ex: address on a Person which actually exists on
......
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