Commit 379140f0 authored by Stefan H. Holek's avatar Stefan H. Holek

Restore ability to undo multiple transactions from the ZMI.

parent c244e98a
......@@ -8,6 +8,15 @@ http://docs.zope.org/zope2/releases/.
2.13.9 (unreleased)
-------------------
Bugs Fixed
++++++++++
- Restore ability to undo multiple transactions from the ZMI by using the
`undoMultiple` API. Backported from trunk (r122087).
Features Added
++++++++++++++
- Updated distributions:
- Products.ZCatalog = 2.13.15
......
......@@ -132,14 +132,15 @@ class UndoSupport(ExtensionClass.Base):
def manage_undo_transactions(self, transaction_info=(), REQUEST=None):
"""
"""
undo=self._p_jar.db().undo
tids = {}
for tid in transaction_info:
tid=tid.split()
tid = tid.split()
if tid:
transaction.get().note("Undo %s" % ' '.join(tid[1:]))
tid=decode64(tid[0])
undo(tid)
tids[decode64(tid[0])] = tid[-1]
if tids:
transaction.get().note("Undo %s" % ' '.join(tids.values()))
self._p_jar.db().undoMultiple(tids.keys())
if REQUEST is None:
return
......
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