Pārlūkot izejas kodu

fix small broken code in move_recursively action

Guénaël Muller 6 gadus atpakaļ
vecāks
revīzija
049cab0ec9
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      tracim/lib/core/content.py

+ 5 - 1
tracim/lib/core/content.py Parādīt failu

@@ -963,7 +963,11 @@ class ContentApi(object):
963 963
         self.save(item, do_notify=False)
964 964
 
965 965
         for child in item.children:
966
-            with new_revision(child):
966
+            with new_revision(
967
+                session=self._session,
968
+                tm=transaction.manager,
969
+                content=child
970
+            ):
967 971
                 self.move_recursively(child, item, new_workspace)
968 972
         return
969 973