Commit 8285c2e5 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Bug fix: Preserve initial parameters in recursive calls.

The __undoLog() method is used by undoLog() and transactionLog() with
different parameters. When a recursive call is made, keep initial arguments
instead of always call as if it was undoLog().

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1867 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1cc0e6b4
......@@ -896,8 +896,8 @@ class Application(object):
# Check we return at least one element, otherwise call
# again but extend offset
if len(undo_info) == 0 and not block:
undo_info = self.undoLog(first=first, last=last*5, filter=filter,
block=1)
undo_info = self.__undoLog(first=first, last=last*5, filter=filter,
block=1, with_oids=with_oids)
return undo_info
def undoLog(self, first, last, filter=None, block=0):
......
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