You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/08/09 14:43:15 UTC
[3/3] allura git commit: [#8104] Skip creating metapost if list of
changes is empty
[#8104] Skip creating metapost if list of changes is empty
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/2626a466
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/2626a466
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/2626a466
Branch: refs/heads/master
Commit: 2626a466723be6aa2a0ac9e424da20ad6042be2e
Parents: eb0d955
Author: Rohan Verma <ro...@gmail.com>
Authored: Tue Jul 19 04:10:46 2016 +0530
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Tue Aug 9 10:41:13 2016 -0400
----------------------------------------------------------------------
ForgeTracker/forgetracker/tracker_main.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/2626a466/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 91f354d..17d7f8d 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -1540,8 +1540,10 @@ class TicketController(BaseController, FeedController):
changes[cf.label] = cf_val(cf)
post_text, notification_text = render_changes(changes, comment)
+
thread = self.ticket.discussion_thread
- thread.add_post(text=post_text, is_meta=True,
+ if changes.get_changed():
+ thread.add_post(text=post_text, is_meta=True,
notification_text=notification_text)
self.ticket.commit()
if comment: