allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject allura git commit: [#8237] Move all attachments when moving a thread between forums
Date Thu, 15 Nov 2018 19:55:52 GMT
Repository: allura
Updated Branches:
  refs/heads/master b9463cdc5 -> 7340ba495


[#8237] Move all attachments when moving a thread between forums


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/7340ba49
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7340ba49
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7340ba49

Branch: refs/heads/master
Commit: 7340ba495e0a620b2d8a791d0f4db3cf027e2fb5
Parents: b9463cd
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Nov 14 15:42:48 2018 -0500
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Thu Nov 15 19:17:34 2018 +0000

----------------------------------------------------------------------
 ForgeDiscussion/forgediscussion/model/forum.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/7340ba49/ForgeDiscussion/forgediscussion/model/forum.py
----------------------------------------------------------------------
diff --git a/ForgeDiscussion/forgediscussion/model/forum.py b/ForgeDiscussion/forgediscussion/model/forum.py
index f0e90c0..1796f23 100644
--- a/ForgeDiscussion/forgediscussion/model/forum.py
+++ b/ForgeDiscussion/forgediscussion/model/forum.py
@@ -196,7 +196,7 @@ class ForumThread(M.Thread):
             {'$set': dict(discussion_id=new_forum._id)}, multi=True)
         self.attachment_class().query.update(
             {'discussion_id': self.discussion_id, 'thread_id': self._id},
-            {'$set': dict(discussion_id=new_forum._id)})
+            {'$set': dict(discussion_id=new_forum._id)}, multi=True)
         self.discussion_id = new_forum._id
 
 


Mime
View raw message