Explorar el Código

fix small broken code in move_recursively action

Guénaël Muller hace 6 años
padre
commit
049cab0ec9
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      tracim/lib/core/content.py

+ 5 - 1
tracim/lib/core/content.py Ver fichero

@@ -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