--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -746,9 +746,10 @@
thread = self.ticket.discussion_thread
post_count = M.Post.query.find(dict(discussion_id=thread.discussion_id, thread_id=thread._id)).count()
c.ticket_custom_field = W.ticket_custom_field
+ subscribed = M.Mailbox.subscribed(artifact=self.ticket)
return dict(ticket=self.ticket, globals=c.app.globals,
allow_edit=has_artifact_access('write', self.ticket)(),
- subscribed=M.Mailbox.subscribed(artifact=self.ticket),
+ subscribed=subscribed,
page=page, limit=limit, count=post_count)
else:
raise exc.HTTPNotFound, 'Ticket #%s does not exist.' % self.ticket_num