incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [5/7] git commit: [#5730] ticket:265 Set discussion_id on posts when moving the ticket
Date Tue, 05 Feb 2013 17:26:28 GMT
[#5730] ticket:265 Set discussion_id on posts when moving the ticket


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

Branch: refs/heads/master
Commit: 8f09f6cead989f5861d93e942a5660b9c0583ea6
Parents: de6059d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Feb 4 11:16:18 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Feb 5 17:26:07 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/model/ticket.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8f09f6ce/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 3b854c2..2532b18 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -607,6 +607,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
             attach_metadata['type'] = 'thumbnail'
             post.app_config_id = app_config._id
             post.app_id = app_config._id
+            post.discussion_id = app_config.discussion_id
             self._move_attach(post.attachments, attach_metadata, app_config._id)
 
         session(self.discussion_thread).flush(self.discussion_thread)


Mime
View raw message