Commit b7365c8c authored by Yoshinori Okuji's avatar Yoshinori Okuji

This is a critical bug fix. When tpc_prepare registered new objects, they were...

This is a critical bug fix. When tpc_prepare registered new objects, they were not taken into account.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4260 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c98fe62a
......@@ -767,9 +767,13 @@ try:
# create infinite loop
jars_len = -1
jars = self._get_jars(objects, subtransaction)
objects_len = len(self._objects)
while len(jars) != jars_len:
jars_len = len(jars)
self._commit_prepare(jars, subjars, subtransaction)
if len(self._objects) != objects_len:
objects.extend(self._objects[objects_len:])
objects_len = len(self._objects)
jars = self._get_jars(objects, subtransaction)
try:
# If not subtransaction, then jars will be modified.
......
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