Commit 705aa9ef authored by Vincent Pelletier's avatar Vincent Pelletier

There is no reason to hide last version in loadBefore.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2242 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f449d4b1
......@@ -547,12 +547,7 @@ class Application(object):
"""Load an object for a given oid before tid committed."""
# Do not try in cache as it manages only up-to-date object
logging.debug('loading %s before %s', dump(oid), dump(tid))
data, start, end = self._load(oid, tid=tid)
if end is None:
# No previous version
return None
else:
return data, start, end
return self._load(oid, tid=tid)
@profiler_decorator
......
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