Browse Source

fix small broken code in move_recursively action

Guénaël Muller 6 years ago
parent
commit
049cab0ec9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tracim/lib/core/content.py

+ 5 - 1
tracim/lib/core/content.py View File

963
         self.save(item, do_notify=False)
963
         self.save(item, do_notify=False)
964
 
964
 
965
         for child in item.children:
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
                 self.move_recursively(child, item, new_workspace)
971
                 self.move_recursively(child, item, new_workspace)
968
         return
972
         return
969
 
973